diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-01-09 14:57:58 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-01-09 14:57:58 -0500 |
commit | 859619b443b8d67fb262b3338015b036a1f942e1 (patch) | |
tree | 25157f43989bc79cb704186af43ea8dedf407db6 /main.c | |
parent | f9092e361420a44e6ed8e5a1fa13d3fad9f3d7de (diff) |
escape command
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -279,14 +279,6 @@ int main(int argc, char **argv) { (u32)((modifier & (KMOD_LCTRL|KMOD_RCTRL)) != 0) << KEY_MODIFIER_CTRL_BIT | (u32)((modifier & (KMOD_LSHIFT|KMOD_RSHIFT)) != 0) << KEY_MODIFIER_SHIFT_BIT | (u32)((modifier & (KMOD_LALT|KMOD_RALT)) != 0) << KEY_MODIFIER_ALT_BIT; - if (key_combo == SDL_SCANCODE_ESCAPE << 3) { - // escape key - if (ted->menu) { - ted_menu_close(ted, true); - } else if (buffer) { - buffer_disable_selection(buffer); - } - } if (key_combo < KEY_COMBO_COUNT) { KeyAction *action = &ted->key_actions[key_combo]; if (action->command) { |