Skip to content
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

Non-modifier Keys Mapped to Modifiers Work as Modifiers Even When not Held Down #28

Closed
noctuid opened this issue Jan 22, 2014 · 5 comments

Comments

@noctuid
Copy link

noctuid commented Jan 22, 2014

Trying example two, all the symbols I have on my altgr layer are inserted when typing normally even if "s" is not held down. Any key that has mappings on the altgr level being typed quickly after s results in a symbol being entered.

It would be nice if there was a setting to specify a time for which the key had to be held down before acting as a modifier to prevent this from happening.

@joetw
Copy link
Collaborator

joetw commented Jan 22, 2014

Confirmed. I wrote that example as a modification of what I use; I didn't run into this earlier. Sorry for not testing more thoroughly!

I suspect this only happens when you press the next key before having released your AltGr. Do you agree? To be fair, that's likely normal for a fast touch-typist with keys that are very easy to reach. If e.g. I type "jk" (without xmodmap or xcape) quickly and so that the two key presses overlap, I still get the expected result of "jk".

If we assume that typing a chord with AltGr slows you down a little bit, then your suggested enhancement should work.

@noctuid
Copy link
Author

noctuid commented Jan 22, 2014

I agree, but it happens consistently when I type s when I typing with any decent amount of speed, and I'm not holding down any keys for very long at all. I tested it on a mechanical board and tried to be very quick with my keypresses, and it was slightly better but still a big problem.

It's really on the release/very end of the press that I hit another key I guess. Whatever the time is that they both are being pressed for is probably extremely small.

When I type chords altgr, I'm definitely pressing it down longer before hitting another key. If there was an adjustable time before which it would activate, I think the problem would be eliminated. I'm thinking even 100 or 200ms might fix it, and even longer wouldn't slow down chording too much I think

@alols
Copy link
Owner

alols commented Jan 22, 2014

The suggestion does not really apply to xcape though, because xcape does not map ordinary keys to modifiers, xcape maps modifiers to ordinary keys.

@noctuid
Copy link
Author

noctuid commented Jan 22, 2014

Well it claims to in two of the three examples, and it works that way (apart from this problem). It certainly would be a very useful and nice feature to have.

@alols
Copy link
Owner

alols commented Jan 22, 2014

Please see the updated documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants