Commit eecb40ec authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

Hide the caret only on the first WM_KEYDOWN.

parent 0f5231d9
...@@ -1159,7 +1159,9 @@ LRESULT WINAPI ScrollBarWndProc( HWND hwnd, UINT message, WPARAM wParam, ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment