Re: FVWM: binding a key to a specific window

From: Dominik Vogt <fvwm_at_fvwm.org>
Date: Mon, 27 Jan 2003 09:18:15 +0100

On Sun, Jan 26, 2003 at 01:21:25PM -0500, Rouben Rostamian wrote:
> Hello all!
>
> I have an FvwmButtons module.
> I wish to bind a key (e.g., Escape) so that:
> when the module window has the focus
> then that key closes/kills the module.
>
> In short, I want to press a key to close a FvwmButtons module.
> Is such a thing possible? I am using fvwm2 version 2.4.5.

You can not bind a key to a specific window, but you can write
something like this:

  Function do_this_or_that
  + I Current (!FvwmButtons) Function do_this
  + I Current (FvwmButtons) Function do_that

  Function do_this
  + I ...

  Function do_that
  + I Close

  key Escape A M Function do_this_or_that

Or if you don't want the key to do something only with
FvwmButtons, the example reduces to

   key Escape A M Current (FvwmButtons) Close

Bye

Dominik ^_^ ^_^
--
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 Jan 27 2003 - 02:17:37 GMT

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