-
-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong keys in Xserver #46
Comments
I found these two bug reports that seem related: I experimented with the AHK key log and here is what I get when pressing
It seems that instead of the home button it sends the |
I also tried weaking the Xserver itself. If I disable the numlock programmatically by using the |
I have found a workaround for this! In the file
It is sufficient to comment them out. Make sure to make a copy of that file first! Note that this might break those keys in extended layouts and whatnot. Be careful! After that the AHK key log is simpler:
|
Hopefully good news: In the latest commit 22af93a I've added a check for the six affected keys that all have a counterpart on the NumPad in addition to their normal version: Home/End/Insert/Delete/PgUp/PgDn. When one of these is sent from a VK (Virtual Key) mapping, the normal version of them is now sent rather than the NumPad one – so, a key mapped to This issue wasn't a bug in EPKL per se, but a result of an unexpected behavior in Autohotkey. The VK codes for the affected keys are degenerate, which apparently is an advantage for Windows in some contexts. But AHK then chooses to send the NumPad version of them when asked to send their VK code, which in my view is unintuitive. The issue did not affect Extend mappings since these are not sent by VK but as named keys, e.g., |
I was extremely happy that EPKL worked well with Windows-based Xservers. I use them to run GUI programs in WSL and in cygwin. Before, I needed to go through configuring keyboards manually in the XServer through a set of command line options. Now I can just run it in default mode and EPKL then sends the correct keys there. Extra perk: the XServer layout is the same of the active windows one. Before that, even after you configured it, it still was not synced with the windows one and that could be confusing.
However, now I encounctered a problem: the
Del
PgUp
,PgUp
,Home
,End
keys send numbers or a period instead of doing what they should. The keys they send are.
9
3
7
1
respectively. This does not depend on the layout! It happens for Colemak, Qwerty, and Rulemak.Interestingly enough issueing these commands through the extended layout accessed through
CapsLock
works well. That is actually how am surviving for now.A contributing factor might be that I am a laptop: It is a 15 inch that does not have a number pad but the keys I cited are on a separate column to the right of the enter button.
The text was updated successfully, but these errors were encountered: