On Thu, Mar 21, 2019 at 2:40 PM Klaus Ethgen <klaus+f...@ethgen.ch> wrote: > - From the documentation, the following mapping: > Key Up A M Scroll +0 -10 > Key (mpv) Up A M - > > Should bind alt-Up to the Scroll except in mpv window. But it also > scrolls in mpv windown. >
In the second command 'Key (mpv) Up A M -', the - removes the keybinding. Since there is no specific key binding for mpv it uses your global keybinding. From the documentation: Key [(window)] Keyname Context Modifiers Function Binds a keyboard key to a specified fvwm command, or removes the binding if Function is '-'. > When I do the scroll mapping as above but from command line I do > `FvwmCommand 'Key (mpv) Up A M -'`, it does not work. > It does work, just not as you expected. > So I tried `Key (mpv) Up A M Echo Up` which worked and echos the Up. Yes this will work, because now you have a window specific binding that fvwm uses. > - - Is that a known bug? No. > - - How to do a mapping for everything except in mpv window? > - - What is the difference between `-` and `--` in this context? >From the man page: A '--' action indicates that the event should be propagated to the specified window to handle. This is only a valid action for window-specific bindings. So in conclusion, when using window specific bindings and you want to propagate the press to the window you want to use '--', not '-' (which tells fvwm to remove the binding). Thus I think you should be able to get this to work if you change your bindings to Key Up A M Scroll +0 -10 Key (mpv) Up A M -- jaimos