make keyhandler abort key configurable via config.h
This commit is contained in:
parent
3bec517655
commit
4ec8fd5377
@ -70,6 +70,9 @@ static const int THUMB_SIZE = 3;
|
|||||||
/* Following modifiers (NumLock | CapsLock) will be ignored when processing keybindings */
|
/* Following modifiers (NumLock | CapsLock) will be ignored when processing keybindings */
|
||||||
static const int ignore_mask = Mod2Mask | LockMask;
|
static const int ignore_mask = Mod2Mask | LockMask;
|
||||||
|
|
||||||
|
/* abort the keyhandler */
|
||||||
|
static const KeySym keyhandler_abort = XK_Escape;
|
||||||
|
|
||||||
/* keyboard mappings for image and thumbnail mode: */
|
/* keyboard mappings for image and thumbnail mode: */
|
||||||
static const keymap_t keys[] = {
|
static const keymap_t keys[] = {
|
||||||
/* modifiers key function argument */
|
/* modifiers key function argument */
|
||||||
|
2
main.c
2
main.c
@ -587,7 +587,7 @@ void on_keypress(XKeyEvent *kev)
|
|||||||
}
|
}
|
||||||
if (IsModifierKey(ksym))
|
if (IsModifierKey(ksym))
|
||||||
return;
|
return;
|
||||||
if (extprefix && ksym == XK_Escape && MODMASK(kev->state) == 0) {
|
if (extprefix && ksym == keyhandler_abort && MODMASK(kev->state) == 0) {
|
||||||
extprefix = False;
|
extprefix = False;
|
||||||
} else if (extprefix) {
|
} else if (extprefix) {
|
||||||
run_key_handler(XKeysymToString(ksym), kev->state & ~sh);
|
run_key_handler(XKeysymToString(ksym), kev->state & ~sh);
|
||||||
|
Loading…
Reference in New Issue
Block a user