commit 5e48c368772fa3c8665aa00412d9a4ac90576275
parent 9e3fca4021918fb007653e25042ba3b44482c229
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Mon, 20 Jan 2020 16:30:51 +0100
rcfile: do set the meta flag for plain <Meta+ASCII> combinations
The meta flag needs to be suppressed only for the self-defined
<Meta+arrow> key codes.
This fixes https://savannah.gnu.org/bugs/?57643.
Bug existed since commit 5130c35b from a few hours ago.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/global.c b/src/global.c
@@ -520,7 +520,7 @@ int keycode_from_string(const char *keystring)
void assign_keyinfo(keystruct *s, const char *keystring, const int keycode)
{
s->keystr = keystring;
- s->meta = (keystring[0] == 'M' && keycode == 0);
+ s->meta = (keystring[0] == 'M' && keycode < 0x7F);
s->keycode = (keycode ? keycode : keycode_from_string(keystring));
}