1
0
mirror of https://github.com/Cloudef/bemenu synced 2024-11-23 09:21:59 +01:00

fixed that respond of Escape while using Vim binding under Wayland

This commit is contained in:
Moyu Su 2023-03-13 20:06:06 +08:00 committed by Jari Vetoniemi
parent 0c0107e8cb
commit 8e2fd06f70

@ -212,7 +212,7 @@ enum bm_vim_code bm_vim_key_press(struct bm_menu *menu, enum bm_key key, uint32_
if(menu->vim_last_key == 0) return vim_on_first_key(menu, unicode, item_count, items_displayed);
else return vim_on_second_key(menu, unicode, item_count, items_displayed);
} else if(menu->vim_mode == 'i'){
if(key == BM_KEY_ESCAPE && unicode == 0){
if(key == BM_KEY_ESCAPE && (unicode == 0 || unicode == 27)){
menu->vim_mode = 'n';
return BM_VIM_CONSUME;
}