diff options
author | Rich Felker <dalias@aerifal.cx> | 2006-10-03 03:32:52 +0000 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2006-10-03 03:32:52 +0000 |
commit | 52acab855e8ab1d668e03bd03e371904b0fc232c (patch) | |
tree | 66df118b90be5e0dc39b85b7296caf3bc789429b | |
parent | 0fe28fd69dd15006ccd684d563699420aadde61a (diff) |
make alt+special keys work
-rw-r--r-- | fbcon.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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; } |