cloudhead / rx

👾 Modern and minimalist pixel editor
https://discord.gg/xHggPjfsS9
GNU General Public License v3.0
3.07k stars 109 forks source link

Create keybinds based on keycodes for non-US keyboards #116

Open FeldrinH opened 3 years ago

FeldrinH commented 3 years ago

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?

cloudhead commented 3 years ago

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.

hendursaga commented 1 year ago

Perhaps this is a duplicate of #89?