dvorak icon indicating copy to clipboard operation
dvorak copied to clipboard

when using gnome-tweak to remap capslock key to ctrl, the program does not translate keystrokes to qwerty when capslock is pressed

Open pigeonman99 opened this issue 2 years ago • 2 comments

i use gnome-tweak to remap capslock to ctrl for better ergonomics.

when i press capslock-* the program does not translate to qwerty. i.e. i had to press capslock-i to copy.

pigeonman99 avatar Aug 16 '22 02:08 pigeonman99

I believe the gnome mapping happens after I captures the keycodes. In order to make this work, a 5th modifier (CAPS_LOCK) needs to be added here: https://github.com/tbocek/dvorak/blob/c72932ee331f33b6e818788e2cd28a3db5a88ec7/dvorak.c#L90 and here https://github.com/tbocek/dvorak/blob/c72932ee331f33b6e818788e2cd28a3db5a88ec7/dvorak.c#L439, ideally with a flag here: https://github.com/tbocek/dvorak/blob/c72932ee331f33b6e818788e2cd28a3db5a88ec7/dvorak.c#L228

tbocek avatar Aug 16 '22 06:08 tbocek

thanks for the pointer! let me try your suggestion and see how it goes. will report back.

pigeonman99 avatar Aug 16 '22 18:08 pigeonman99