From 52acab855e8ab1d668e03bd03e371904b0fc232c Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Tue, 3 Oct 2006 03:32:52 +0000 Subject: make alt+special keys work --- fbcon.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fbcon.c b/fbcon.c index 6d6bfa9..dd6a074 100644 --- a/fbcon.c +++ b/fbcon.c @@ -106,6 +106,7 @@ static int mapkey(unsigned *m, unsigned k, unsigned char *s) int i = 0; k &= 0x7f; + if (*m & 4) s[i++] = '\033'; if (k < sizeof(keymap)) { c = keymap[k]; if (c-0200 < 6) { @@ -121,9 +122,6 @@ static int mapkey(unsigned *m, unsigned k, unsigned char *s) //if (c >= '@') c &= 0x1f; //else if (keymap_sh[k] >= '@') c = keymap_sh[k] & 0x1f; } - if (*m & 4) { - s[i++] = '\033'; - } s[i++] = c; return i; } -- cgit v1.2.3