Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lapce swallowed the xlib send_event ControlMask while sublime won't #3213

Open
diyism opened this issue Apr 26, 2024 · 2 comments
Open

lapce swallowed the xlib send_event ControlMask while sublime won't #3213

diyism opened this issue Apr 26, 2024 · 2 comments
Labels
C-feature Category: New feature or request

Comments

@diyism
Copy link

diyism commented Apr 26, 2024

I've used myboard.py to realize debian system-wide VIM keyboard shortcuts(https://github.com/diyism/MyBoard/blob/master/myboard.py) for over 11 years,
it's very convenient, it works well with the sublime editor.

For example, when I type only "z" key in sublime,
the system-wide running myboard.py will grab the "z" and do send_event('z', X.ControlMask, 1) with python xlib,
and the sublime editor can receive the "ctrl+z" combination and execute the undo command.

But this won't work in lapce, the lapce only received the "z" character.

Is there any possibility to realize the same effect with the sublime?

Thanks.

@diyism diyism added the C-feature Category: New feature or request label Apr 26, 2024
@panekj
Copy link
Collaborator

panekj commented Apr 26, 2024

Is myboard sending a real key events or doing something weird?

@diyism
Copy link
Author

diyism commented May 10, 2024

@panekj I'm not expert, I've asked gpt4:
Screenshot 2024-05-10 at 21-04-30 gAIgle com

Perhaps what Lapce swallowed was the first manually entered 'z' key event, not the simulated Ctrl+Z combination event that I talked about in my first reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature Category: New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants