Closed itaniknight closed 7 years ago
It sounds like our code to read the keyboard layout from the OS isn't returning a result for the key in question.
Hey. So I just introduced some null guards to cover cases where we don't have entries for the physical A, S, D, or F keys in the native map. It's basically going to assume your keyboard is latin which might be incorrect in some cases, but I think it's an improvement. You'll need to build 1.15.0 until the next major release to get these fixes. Thanks for the report!
Description
I used xmodmap to bind AltGr + ESDF to the arrow keys (so I don't have to actually reach the physical arrow keys all the time). This works in all applications, including Atom. In other applications, unbound Mode_switch combinations are ignored, but in Atom they cause an Uncaught TypeError.
So, for example:
To clarify, Atom does still print the expected characters, it just also causes a TypeError.
The xmodmap config file looks like this:
keycode 39 = o O Left
means: type o with no modifiers, O when holding shift, and Left (the arrow key) when holding Mode_switch. Again, all of these keys work in Atom. It's the unbound combinations that cause the error. I'm reasonably confident Dvorak isn't causing this, as Atom has zero problems with it otherwise and Mode_switch isn't part of the layout by default.System
Atom: 1.14.0-beta1 x64 Electron: 1.3.13 OS: Ubuntu 16.10 Thrown From: Atom Core
Stack Trace
Uncaught TypeError: Cannot read property 'unmodified' of undefined
Non-Core Packages
Additional Information
I originally posted this in another issue, and @Ben3eeE requested I make a new one over here. I did my best to clarify the other questions in this new issue.