Kaleidoscope icon indicating copy to clipboard operation
Kaleidoscope copied to clipboard

Key_RightAlt returns event.key Alt, should be AltGraph

Open eriols opened this issue 2 years ago • 3 comments

Describe the bug There seems to be some flakiness involved with using Key_RightAlt. In the majority of the cases it returns event.key Alt (event.which 18) whereas it should return event.key AltGraph (event.which 225). Sometimes I get into a state where it returns 225, but I have not understood what causes this.

It's a rather annoying issue as I use AltGraph as the compose key on Ubuntu for all sorts of umlauts and no other key options are very appealing in being easy to access on both laptop and Atreus. Today I often find myself having to write "ä" using ctrl + u + e4, which is tedious.

To Reproduce 1 Map a key to Key_RightAlt and flash the keyboard, 2 then use eg the site keycode.info to see which event it emits.

Expected behavior I expect Key_RightAlt to always return event.key AltGraph, not Alt.

Environment (please complete the following information):

  • OS: Ubuntu
  • Version 18.04
  • Device Atreus Keyboardio

Additional context Love the keyboard, I also have the old wooden version with more clicky keys but this one I use in the office. Thanks!

eriols avatar Apr 14 '22 08:04 eriols

So there’s nothing in the firmware that should mix the two. Is this reproducible on more than one computer? I recall there being something …special about ubuntu’s modifier handling in that era.

Additionally, browser based event reporting can be a little bit dicey. Does xev report the same thing?

On Apr 14, 2022, at 4:16 AM, Firmament @.***> wrote:

 Describe the bug There seems to be some flakiness involved with using Key_RightAlt. In the majority of the cases it returns event.key Alt (event.which 18) whereas it should return event.key AltGraph (event.which 225). Sometimes I get into a state where it returns 225, but I have not understood what causes this.

It's a rather annoying issue as I use AltGraph as the compose key on Ubuntu for all sorts of umlauts and no other key options are very appealing in being easy to access on both laptop and Atreus. Today I often find myself having to write "ä" using ctrl + u + e4, which is tedious.

To Reproduce 1 Map a key to Key_RightAlt and flash the keyboard, 2 then use eg the site keycode.info to see which event it emits.

Expected behavior I expect Key_RightAlt to always return event.key AltGraph, not Alt.

Environment (please complete the following information):

OS: Ubuntu Version 18.04 Device Atreus Keyboardio Additional context Love the keyboard, I also have the old wooden version with more clicky keys but this one I use in the office. Thanks!

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.

obra avatar Apr 14 '22 13:04 obra

It certainly sounds more likely to be software on the host causing this than something on the keyboard. The only thing I can think of that seems even vaguely plausible if it is the keyboard is the key in question being mapped to Key_RightAlt on one layer and Key_LeftAlt on another, which is accidentally getting triggered sometimes.

gedankenexperimenter avatar Apr 14 '22 14:04 gedankenexperimenter

So there’s nothing in the firmware that should mix the two. Is this reproducible on more than one computer? [snip] Does xev report the same thing?

Thanks a lot for the suggestions and hints. I regret to say I can't try it out more for a few days since I'm out of town for a few days. Will report back early next week.

eriols avatar Apr 14 '22 19:04 eriols