[openbox] On-key-release keybindings
wanderer at fastmail.fm
Tue Apr 29 10:18:12 EDT 2014
-----BEGIN PGP SIGNED MESSAGE-----
Does OpenBox's keybindings facility provide any way to bind an action to
what xev reports as a KeyRelease event, rather than to KeyPress?
I'm experimenting with trying to produce a Linux UI which works as much
as possible like the standard Windows UI. I'm starting out with a base
of LXDE, which uses OpenBox. LXDE includes a Start-menu type of widget,
but does not bind it to the Win key by default.
In Windows XP (not sure about 7 yet), when you press the Win key, the
Start menu does not open immediately; it only opens when the key is
released. This is presumably so that multi-key Win+[other key] bindings
can work, without having the press of the Win key be eaten by the
single-key bind. (Also, this probably helps avoid having the Start menu
open briefly every time you try to use a Win+[other key] shortcut.)
I've successfully bound the Win key (Super_L) to the appropriate LXDE
menu command via the relevant OpenBox XML file; the way to do that is
documented in many places online. However, everything I've tried only
seems to bind it to the KeyPress event. I haven't found any OpenBox- or
LXDE-related discussion of KeyRelease bindings in documentation or
online forums at all.
If there is facility for KeyRelease bindings in OpenBox, I'd like to
learn what it is, so I can use it. If there isn't, I'd like to ask if it
could be added, for a future release. If not, I'll have to fall back on
some non-OpenBox keybindings method to try to get this to work.
Secrecy is the beginning of tyranny.
A government exists to serve its citizens, not to control them.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
-----END PGP SIGNATURE-----
More information about the openbox