Re: [Vimprobable-users] [PATCH] Ignore irrelevant modifiers in key events.
Vimprobable is a lean web browser optimised for full keyboard control
Brought to you by:
hanness
|
From: Hans-Peter D. <hpd...@gm...> - 2011-10-04 23:54:15
|
Hi, On 17:25 Thu 22 Sep , Hans-Peter Deifel wrote: > NOTE: Keybindings like 'S-x' in vimprobablerc will stop working and > should now be written as simply 'X'. I think I need to elaborate on this one: Unfortunately, gdk_keymap_translate_keyboard_state doesn't allow us to strip irrelevant modifiers from the event _and_ the stored key binding. Thus, bindings with such modifiers will be considered different from their counterparts without the modifiers (and the actual events). The example in the commit message illustrates this. Note, that this renders the "Shift"-modifier almost useless for 'map'-bindings, because the only keys that don't change their symbol with shift cannot be bound with 'map'. (E.g. Space, Return, etc.) The vimprobablerc(1) man page currently has some examples using "S-something". Those need to be either removed or adapted, but I didn't want to change the man page before the move to section 5 is merged. I think we should also make it possible to bind to keys like Space or Return with 'map'. Generally map should accept a sufficiently large subset of Vim's own map-bindings. Unfortunately I don't have the time to implement this myself right now, but it should definitely stay on the To-do list. Regards, HP |