Handle modifier 9 as Meta, GitHub issue 2647.

This commit is contained in:
Nicholas Marriott 2021-04-15 08:22:36 +01:00
parent 6f6b7f8261
commit 98650658a7

View File

@ -252,7 +252,8 @@ static const key_code tty_default_xterm_modifiers[] = {
KEYC_CTRL, KEYC_CTRL,
KEYC_SHIFT|KEYC_CTRL, KEYC_SHIFT|KEYC_CTRL,
KEYC_META|KEYC_IMPLIED_META|KEYC_CTRL, KEYC_META|KEYC_IMPLIED_META|KEYC_CTRL,
KEYC_SHIFT|KEYC_META|KEYC_IMPLIED_META|KEYC_CTRL KEYC_SHIFT|KEYC_META|KEYC_IMPLIED_META|KEYC_CTRL,
KEYC_META|KEYC_IMPLIED_META
}; };
/* /*
@ -944,6 +945,9 @@ tty_keys_extended_key(struct tty *tty, const char *buf, size_t len,
case 8: case 8:
nkey |= (KEYC_SHIFT|KEYC_META|KEYC_IMPLIED_META|KEYC_CTRL); nkey |= (KEYC_SHIFT|KEYC_META|KEYC_IMPLIED_META|KEYC_CTRL);
break; break;
case 9:
nkey |= (KEYC_META|KEYC_IMPLIED_META);
break;
default: default:
*key = KEYC_NONE; *key = KEYC_NONE;
break; break;