mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-16 12:03:03 -05:00
Small keyboard patches from Robert de Bath. Should fix the dead-key
problem and also some unspecified woe with the ever-problematic Compose key. [originally from svn r1046]
This commit is contained in:
parent
a7f58efa85
commit
953b7775b3
4
window.c
4
window.c
@ -2063,7 +2063,7 @@ static int TranslateKey(UINT message, WPARAM wParam, LPARAM lParam,
|
|||||||
|
|
||||||
/* Note if AltGr was pressed and if it was used as a compose key */
|
/* Note if AltGr was pressed and if it was used as a compose key */
|
||||||
if (!compose_state) {
|
if (!compose_state) {
|
||||||
compose_key = -1;
|
compose_key = 0x100;
|
||||||
if (cfg.compose_key) {
|
if (cfg.compose_key) {
|
||||||
if (wParam == VK_MENU && (HIWORD(lParam)&KF_EXTENDED))
|
if (wParam == VK_MENU && (HIWORD(lParam)&KF_EXTENDED))
|
||||||
compose_key = wParam;
|
compose_key = wParam;
|
||||||
@ -2427,6 +2427,8 @@ static int TranslateKey(UINT message, WPARAM wParam, LPARAM lParam,
|
|||||||
|
|
||||||
return p-output;
|
return p-output;
|
||||||
}
|
}
|
||||||
|
/* If we're definitly not building up an ALT-54321 then clear it */
|
||||||
|
if (!left_alt) keys[0] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ALT alone may or may not want to bring up the System menu */
|
/* ALT alone may or may not want to bring up the System menu */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user