mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-27 02:02:26 +00:00
Reset compose state to zero when PuTTY window gains focus
[originally from svn r779]
This commit is contained in:
parent
2cc663cafb
commit
21299d2c39
4
window.c
4
window.c
@ -102,6 +102,8 @@ static char *window_name, *icon_name;
|
|||||||
|
|
||||||
static Ldisc *real_ldisc;
|
static Ldisc *real_ldisc;
|
||||||
|
|
||||||
|
static int compose_state = 0;
|
||||||
|
|
||||||
void begin_session(void) {
|
void begin_session(void) {
|
||||||
ldisc = real_ldisc;
|
ldisc = real_ldisc;
|
||||||
}
|
}
|
||||||
@ -1363,6 +1365,7 @@ static LRESULT CALLBACK WndProc (HWND hwnd, UINT message,
|
|||||||
has_focus = TRUE;
|
has_focus = TRUE;
|
||||||
CreateCaret(hwnd, caretbm, 0, 0);
|
CreateCaret(hwnd, caretbm, 0, 0);
|
||||||
ShowCaret(hwnd);
|
ShowCaret(hwnd);
|
||||||
|
compose_state = 0;
|
||||||
term_out();
|
term_out();
|
||||||
term_update();
|
term_update();
|
||||||
break;
|
break;
|
||||||
@ -1828,7 +1831,6 @@ static int TranslateKey(UINT message, WPARAM wParam, LPARAM lParam,
|
|||||||
unsigned char * p = output;
|
unsigned char * p = output;
|
||||||
|
|
||||||
static WORD keys[3];
|
static WORD keys[3];
|
||||||
static int compose_state = 0;
|
|
||||||
static int compose_char = 0;
|
static int compose_char = 0;
|
||||||
static WPARAM compose_key = 0;
|
static WPARAM compose_key = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user