Re: FVWM: How to bind action to key release?

From: Piotr Zielinski <Piotr.Zielinski_at_cl.cam.ac.uk>
Date: Mon, 28 Jun 2004 12:28:05 +0100

Ruslan> Question: how to bind action to key release?

If you're really, really desperate, and no other solution works, you
can try the following nasty hack:

In .Xmodmap define your key as a modifier, say Mod5. Configure fvwm
in such a way that every time your key is pressed you simulate
pressing another key, say F11, using the FakePress command. Then,
define two bindings for F11: one with Mod5 active and the other
without. If Mod5 is active, then use the Schedule command to simulate
pressing F11 again in, say, 50ms. If not, then execute the command
you want to execute on the key release. Perhaps F11 and Mod5 can be
the same key, but I haven't tested this.

Piotr

--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Mon Jun 28 2004 - 06:30:51 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:56 BST