make keyhandler abort key configurable via config.h

This commit is contained in:
NRK
2021-09-24 16:39:50 +06:00
committed by N-R-K
parent 3bec517655
commit 4ec8fd5377
2 changed files with 4 additions and 1 deletions

2
main.c
View File

@ -587,7 +587,7 @@ void on_keypress(XKeyEvent *kev)
}
if (IsModifierKey(ksym))
return;
if (extprefix && ksym == XK_Escape && MODMASK(kev->state) == 0) {
if (extprefix && ksym == keyhandler_abort && MODMASK(kev->state) == 0) {
extprefix = False;
} else if (extprefix) {
run_key_handler(XKeysymToString(ksym), kev->state & ~sh);