projects
/
profile
/
ivi
/
weston.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7f94bf
)
terminal: Support both Alt and Control modifiers for regular keys
author
Kristian Høgsberg
<krh@bitplanet.net>
Thu, 21 Jun 2012 16:30:15 +0000
(12:30 -0400)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Thu, 21 Jun 2012 16:32:23 +0000
(12:32 -0400)
clients/terminal.c
patch
|
blob
|
history
diff --git
a/clients/terminal.c
b/clients/terminal.c
index
e372d4c
..
0545468
100644
(file)
--- 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;