1
0
mirror of https://github.com/Cloudef/bemenu synced 2024-11-24 01:44:16 +01:00

Merge pull request #29 from upwhere/CtrlM

Add C-m -> Return bind
This commit is contained in:
Jari Vetoniemi 2016-12-06 20:34:19 +02:00 committed by GitHub
commit 01be868def
3 changed files with 7 additions and 0 deletions

@ -327,6 +327,7 @@ poll_key(const struct bm_menu *menu, uint32_t *unicode)
return BM_KEY_SHIFT_RETURN;
case 10: /* Return */
case 13: /* C-m */
terminate();
return BM_KEY_RETURN;

@ -151,6 +151,9 @@ poll_key(const struct bm_menu *menu, unsigned int *unicode)
case XKB_KEY_d:
return (mods & MOD_ALT ? BM_KEY_PAGE_DOWN : BM_KEY_UNICODE);
case XKB_KEY_m:
return (mods & MOD_CTRL ? BM_KEY_RETURN : BM_KEY_UNICODE);
default: break;
}

@ -140,6 +140,9 @@ poll_key(const struct bm_menu *menu, unsigned int *unicode)
case XK_d:
return (mods & MOD_ALT ? BM_KEY_PAGE_DOWN : BM_KEY_UNICODE);
case XK_m:
return (mods & MOD_CTRL ? BM_KEY_RETURN : BM_KEY_UNICODE);
default: break;
}