From ae9e073ac56dee99a9e2c060b1e125fe30af6264 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Thu, 21 Jun 2012 12:30:15 -0400 Subject: [PATCH] terminal: Support both Alt and Control modifiers for regular keys --- clients/terminal.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clients/terminal.c b/clients/terminal.c index e372d4cc..05454689 100644 --- a/clients/terminal.c +++ b/clients/terminal.c @@ -2243,9 +2243,9 @@ key_handler(struct window *window, struct input *input, uint32_t time, else if (sym == '2') sym = 0x00; else if (sym == '/') sym = 0x1F; else if (sym == '8' || sym == '?') sym = 0x7F; - } else if ((terminal->mode & MODE_ALT_SENDS_ESC) && - (modifiers & MOD_ALT_MASK)) - { + } + if ((terminal->mode & MODE_ALT_SENDS_ESC) && + (modifiers & MOD_ALT_MASK)) { ch[len++] = 0x1b; } else if (modifiers & MOD_ALT_MASK) { sym = sym | 0x80;