1
0
Fork 0
mirror of https://github.com/Cloudef/bemenu synced 2024-06-01 04:16:21 +02:00

Add C-m -> Return bind

C-m is often bound to return and it's jarring to have all the
other keybinds but not this one
This commit is contained in:
uphere 2016-12-03 11:44:13 +00:00
parent 6b951600aa
commit cb6030f64b
3 changed files with 7 additions and 0 deletions

View File

@ -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;

View File

@ -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;
}

View File

@ -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;
}