Viktor Griph ([EMAIL PROTECTED]) wrote: > On Sat, Apr 5, 2008 at 1:17 PM, michel Junger <[EMAIL PROTECTED]> wrote: > > Hello, > > > > First of all I use fvwm for a long time and each time I tried to use > > another wm I always came back to fvwm. > > > > This said, my current laptop has no keys "page up" and "page Down", > > so I've put the following lines in my .Xmodmap : > > > > keycode 64 = Mode_switch > > keycode 98 = Up Up Prior Prior > > keycode 104 = Down Down Next Next > > > > This done Alt+Up generates "page up" and Alt+Down generates "page down". > > It works fine in emacs, vi, and all other applications that I use, > > but unfortunately in fvwm root-menu and sub-menu each time I press "Down" > > I jump five lines below and each time I press "Up" I jump five lines above. > > > > I use fvwm 2.5.24, I've tried version 2.5.25, I've tried keys command(115) > > rather > > than Alt(64), no change, is there a solution ? > > (Change my laptop is not an option!) > > You can remove the menu bindings that interfere. > > Key KP_Prior M A - > Key Page_Up M A - > Key KP_Next M A - > Key Page_Down M A - > > should probably do it. (Since the default bindings are for any > modifier it's enough that the key can generate the correct symbol with > some modifier.) > > You might want to add bindings to page up/down with no modifiers to do > MenuMoveCursor -/+5. > > /Viktor
Many, many Thanks. It's exactly what I need. Let me describe my configuration if it can helps someone, in ~/.Xmodmap I've the following lines : keycode 108 = Menu clear mod4 add mod4 = Super_L Super_R keycode 64 = Mode_switch keycode 22 = BackSpace VoidSymbol Delete VoidSymbol keycode 98 = Up Up Prior Prior VoidSymbol VoidSymbol VoidSymbol VoidSymbol keycode 100 = Left Right Home Home VoidSymbol VoidSymbol VoidSymbol VoidSymbol keycode 102 = Right Right End End VoidSymbol VoidSymbol VoidSymbol VoidSymbol keycode 104 = Down Down Next Next VoidSymbol VoidSymbol VoidSymbol VoidSymbol Alt+arrow (up, left, right, down) generates (Prior, Home, End, Next) And in .fvwmrc2 I've : Key Menu A N Popup rootmenu Key Prior M A MenuMoveCursor -1 Key Next M A MenuMoveCursor 1 Key End M A MenuCursorRight Key Home M A MenuCursorLeft With this configuration Up, Down, Left, Right work again in menu and I can navigate again through menus only with keys: Menu, arrows and escape/enter. It's really impressive how fvwm is "flexible". The fvwm's manpage is very long and I spent a lot of time trying to do it, a big thank you for your help. Michel.