Re: On-key-release keybindings

Anthony Thyssen <a.thyssen-YlX7AVbyhojX/[email protected]>
Newsgroups gmane.comp.window-managers.openbox
Message-ID <CABOaSg3R_sgumFjD0L-yYoPgsQip717qpGD+fi3H9yg6Xgk=yw@mail.gmail.com>
Even if openbox doesn't provide it there are other ways to do this.Though I
am not certain which X Event handlers actually can do this, it would be
useful to know.


I have been collecting some notes on handling and generating events at
  http://www.ict.griffith.edu.au/anthony/info/X/event_handling.txt

Though most of the emphasis has been more on generating keyboard macros
using xbindkeys, and openbox.  For example press W-F1 and openbox types
your email address into the current text input box.




Like I have said in the past....

  There are lots of ways to skin a cat, and what method you use depends
  on what you want that skin for, and how messy you like the results!
                                                     -- Anthony Thyssen



On Wed, Apr 30, 2014 at 12:18 AM, The Wanderer <[email protected]> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> 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.
>
> - --
>    The Wanderer
>
> 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/
>
> iQIcBAEBCgAGBQJTX7SkAAoJEASpNY00KDJrM/cQAKz9dt0ZkGO5Lv9SM//xsHN/
> 5qKqx70xR8gDEq2XX8sjCzWel/1ziz8o3rkmnPU963a3yfWrJiLRxN16WFoPGhUs
> LNtJMvR/b2QfCZVwugrr7eeu03Z8ICInpc24AAVPFTNxFHS1l1BsiPjmIVJij7KP
> UIRJYMA5TL1pIIzn0A6/jmz+kP47x7BxfGBqhR7yl9qTRJE9NNUudj6w35qXav1h
> JyQ6f0u005ozi2seFCQI/ZWz2IfontEZbXJ/gDOixnPPYk9g1wL9PEBCoeIXLrOQ
> RVrwmADSx5Z/Wo7XAmX1LUYHoSi1RGWXoCAuWr0xHUu0dH/beKE3nvT4IXptng6k
> yqyCojdqxmqmE4yzmJluv55p/E9UIQxuvE8RewJSFvWxp4rLV6inJycc76y9vDvU
> Zx2t/8o4J4oFvc1FXJrPrrcLCj2SjKQKQ3jzHIjnR4CFo9zj2owhpUHd3/yqmgaU
> 1463woopHl56YyHi92X7ddVlsTafb8aWQHLOFd/WNp32XiyxFwINoyTMMd09bubF
> 5KYBlSd5hg6nhZlTWiX08AwnnFzAUBqjh9bpczeHdaKVjAba8fbNpCK5c0gRHYff
> wInfdzlzb1/XJclw9+7Q3sTMapUVC+dTfmISRTNfwnNy2ur2AoQYP8tvxtXP9Q0h
> k77WK1RGrnfF6TW7ZIhj
> =0C4K
> -----END PGP SIGNATURE-----
> _______________________________________________
> openbox mailing list
> [email protected]
> http://icculus.org/mailman/listinfo/openbox
>

_______________________________________________
openbox mailing list
[email protected]
http://icculus.org/mailman/listinfo/openbox
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.