rx icon indicating copy to clipboard operation
rx copied to clipboard

Create keybinds based on keycodes for non-US keyboards

Open FeldrinH opened this issue 3 years ago • 2 comments

I have a keyboard with a non-US layout, and I would like to use some of the keys with non-english characters on it for custom keybinds. However, since I also often switch between US and native keyboard layout (Estonian), I would like to create these bindings in such a way that they map the specific key, rather than the character.

Currently this can be done for some keys, eg. RBracket and LBracket, which show up in the verbose log as key: Some(LBracket) , however, many keys show up as key: Some(Unknown) and as such I assume they cannot be used in keybinds.

Is there some way to map actions to these keys based on their keycode/scancode. If not, could this feature be added?

FeldrinH avatar May 09 '21 17:05 FeldrinH

Hmm I see. So the keys you're pressing are not recognized by GLFW, which means they are probably not part of the US layout. You get a keycode though? I guess it's possible technically to bind a command to a keycode, it would require a change to the keybinding functionality.

cloudhead avatar May 10 '21 21:05 cloudhead

Perhaps this is a duplicate of #89?

hendursaga avatar Oct 20 '22 17:10 hendursaga