On 2012-04-28 13:29 +0100, Thomas Adam wrote:
> On 28 April 2012 13:25, Dan Espen <des...@verizon.net> wrote:
> > Andre Majorel <aym-m...@teaser.fr> writes:
> >
> >> Is there a way to bind key *sequences* to functions ? EG
> >> [kp-*][1] to switch to page (0,0), etc.
> >
> > The best way to bind sequences is to use a menu with hot keys.
> >
> > kp-* to bring up the menu,
> > 1 to select a menu entry that has 1 assigned as a short cut.
> >
> > I actually use kp-* as a menu key and the menu goes by so fast
> > you almost don't see it.
> 
> Oh, that.
> 
> The solution in the FAQ is what I use (heavily modified, of course):
> 
> http://fvwm.org/documentation/faq/#3.27

Thanks folks. This makes [Pause][KP_7] switch to page (0, 0)
whether or not num-lock is on :

DestroyFunc pause
AddToFunc   pause
+ I Key KP_Home A N GotoPage 0 0
+ I Schedule 1000 Key KP_Home A N -
Key Pause A N pause

DestroyFunc pause_numlock
AddToFunc   pause_numlock
+ I Key KP_Home A 2 GotoPage 0 0
+ I Schedule 1000 Key KP_Home A 2 -
Key Pause A 2 pause_numlock

Note how KP_Home must be used, even though the actual event is
KP_7. There may be a simpler way but I've had enough for
tonight.

-- 
André Majorel http://www.teaser.fr/~amajorel/

Reply via email to