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

Binding \ #14

Closed
Victor239 opened this issue Jan 15, 2023 · 4 comments
Closed

Binding \ #14

Victor239 opened this issue Jan 15, 2023 · 4 comments

Comments

@Victor239
Copy link

Is it possible to bind the \ key? If so what is the text value for it, because \ and backslash don't work.

@Victor239
Copy link
Author

I found https://github.com/jbensmann/mouseless/blob/main/keydefs.go but backslash still doesn't work for me. Any way to troubleshoot this?

@jbensmann
Copy link
Owner

You can run mouseless with the flag --debug, then it will show the names of the keys that you press, which looks like this when I press the backslash key (which is one of the keys next to Enter):

DEBU[0016] Pressed:  backslash (43)

So backslash should be right, could you share the logs if it also says backslash for you but still does not work?

@Victor239
Copy link
Author

Ah it's 102nd key for me. Google says it's for Keyboard Non-US \ and | which makes sense. Thanks for the help!

DEBU[0005] Pressed:  102nd (86)                         
DEBU[0005] Read from queue: {86 true false}             
DEBU[0005] Executing main.KeyBinding: {BaseBinding:{} KeyCombo:[86]} 
DEBU[0005] Keyboard: pressing 86                        
\DEBU[0005] Released: 102nd (86)                         
DEBU[0005] Read from queue: {86 false false}            
DEBU[0005] Keyboard: releasing 86                       
DEBU[0005] Executing main.KeyBinding: {BaseBinding:{} KeyCombo:[86]}

@jbensmann
Copy link
Owner

You're welcome 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants