Skip to content

Commit

Permalink
(w32_read_socket): If the dead key was produced using
Browse files Browse the repository at this point in the history
AltGr and has a valid AltGr scan code, it's a valid key and
should not be discarded.
  • Loading branch information
Richard M. Stallman committed Jun 4, 1996
1 parent 31d85ce commit c2f0599
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/w32term.c
Expand Up @@ -2480,8 +2480,12 @@ w32_read_socket (sd, bufp, numchars, waitp, expected)
add = 1;
}

/* Throw dead keys away. */
if (is_dead_key (msg.msg.wParam))
/* Throw dead keys away. However, be sure not to
throw away the dead key if it was produced using
AltGr and there is a valid AltGr scan code for
this key. */
if (is_dead_key (msg.msg.wParam)
&& !((VkKeyScan (bufp->code) & 0xff00) == 0x600))
break;

bufp += add;
Expand Down

0 comments on commit c2f0599

Please sign in to comment.