aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1996-06-04 23:24:46 +0000
committerRichard M. Stallman1996-06-04 23:24:46 +0000
commit7e797bdb9b62cd627871087d881d6e73c6fe7b33 (patch)
tree50a0120b0f506567810114e0df25fe2a6cad2b26 /src
parentc27f1e01191bbefe0263525f8124250db3b2bf24 (diff)
downloademacs-7e797bdb9b62cd627871087d881d6e73c6fe7b33.tar.gz
emacs-7e797bdb9b62cd627871087d881d6e73c6fe7b33.zip
(w32_read_socket): If the dead key was produced using
AltGr and has a valid AltGr scan code, it's a valid key and should not be discarded.
Diffstat (limited to 'src')
-rw-r--r--src/w32term.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/w32term.c b/src/w32term.c
index 849d3692f2f..350e07675af 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -2480,8 +2480,12 @@ w32_read_socket (sd, bufp, numchars, waitp, expected)
2480 add = 1; 2480 add = 1;
2481 } 2481 }
2482 2482
2483 /* Throw dead keys away. */ 2483 /* Throw dead keys away. However, be sure not to
2484 if (is_dead_key (msg.msg.wParam)) 2484 throw away the dead key if it was produced using
2485 AltGr and there is a valid AltGr scan code for
2486 this key. */
2487 if (is_dead_key (msg.msg.wParam)
2488 && !((VkKeyScan (bufp->code) & 0xff00) == 0x600))
2485 break; 2489 break;
2486 2490
2487 bufp += add; 2491 bufp += add;