Why do modifier keys repeat by default?
Why do modifier keys repeat by default?
- Subject: Why do modifier keys repeat by default?
- From: "Richard L. Hamilton" <email@hidden>
- Date: Sun, 13 Dec 2009 21:05:28 -0500
Configuration: Mac Mini (2,1); Apple Bluetooth keyboard (latest version); OS X 10.6.2,
all the latest updates; stock (or software update) X server (not a separately downloaded
Xquartz).
If I start up xev, and in its window hold down any of shift, control, option, or
command keys, it generates repeated events, until I press some (non-modifier) key.
This really doesn't seem right - I don't think I've seen that behavior on other
platforms.
Is there any way to stop this without turning off key repeat entirely?
(scripting for assistive devices is enabled, because some programs need that;
I quit various other things that might interfere, like Quicksilver, BetterTouchTool,
and Trampoline, although I have SIMBL and Afloat still loaded, but I doubt
they're involved somehow.)
[later]
To partly answer my own question,
xset -r 63 -r 64 -r 66 -r 67 -r 68 -r 69 -r 70 -r 71
turns this off for the duration of the one run of the X server. But I would have expected
that to be the default behavior, save that it's defined in terms of keycodes, and
for modifier keys, I think I'd rather the behavior was in terms of keysyms instead,
and went with them even if they were reassigned to different keycodes.
(Those keycodes were arrived at with the 1st column of
xmodmap -pk|egrep 'Meta|Shift|Mode|Control'.)
I suppose that, pending some better solution, I can put something that parses
xmodmap -pk (or better, xmodmap -pm) output and generates suitable xset -r _keycode_
commands into my ~/.xinitrc file, to get the behavior I want each time the X server
is started.
Anyway, I just think this is strange; I can't imagine that anything expects such
behavior, and tend to think that some programs might find it a bit odd.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden