mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:54:13 +00:00
Hide the caret only on the first WM_KEYDOWN.
This commit is contained in:
parent
0f5231d980
commit
eecb40ec43
1 changed files with 3 additions and 1 deletions
|
@ -1159,7 +1159,9 @@ LRESULT WINAPI ScrollBarWndProc( HWND hwnd, UINT message, WPARAM wParam,
|
||||||
|
|
||||||
/* if key event is received, the scrollbar has the focus*/
|
/* if key event is received, the scrollbar has the focus*/
|
||||||
case WM_KEYDOWN:
|
case WM_KEYDOWN:
|
||||||
HideCaret(hwnd); /*hide caret to prevent flicker*/
|
/* hide caret on first KEYDOWN to prevent flicker */
|
||||||
|
if ((lParam & 0x40000000)==0)
|
||||||
|
HideCaret(hwnd);
|
||||||
SCROLL_HandleKbdEvent( hwnd, wParam );
|
SCROLL_HandleKbdEvent( hwnd, wParam );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue