mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 17:00:51 +08:00
Fix Cursor Position in "...file name:" box when opening from Explorer 'Search' toolbar (#6333)
Original patch by @I_Kill_Bugs. Fix Cursor being in middle of '...file name:' edit box when using 'Search' from the Explorer toolbar. JIRA issue: CORE-19407
This commit is contained in:
@@ -1752,6 +1752,11 @@ static void EDIT_SetCaretPos(EDITSTATE *es, INT pos,
|
||||
#ifdef __REACTOS__
|
||||
HKL hKL = GetKeyboardLayout(0);
|
||||
POINT pt = { (short)LOWORD(res), (short)HIWORD(res) };
|
||||
|
||||
/* Don't set caret if not focused */
|
||||
if ((es->flags & EF_FOCUSED) == 0)
|
||||
return;
|
||||
|
||||
SetCaretPos(pt.x, pt.y);
|
||||
|
||||
if (!ImmIsIME(hKL))
|
||||
|
||||
@@ -1907,6 +1907,11 @@ static void EDIT_SetCaretPos(EDITSTATE *es, INT pos,
|
||||
#ifdef __REACTOS__
|
||||
HKL hKL = GetKeyboardLayout(0);
|
||||
POINT pt = { (short)LOWORD(res), (short)HIWORD(res) };
|
||||
|
||||
/* Don't set caret if not focused */
|
||||
if ((es->flags & EF_FOCUSED) == 0)
|
||||
return;
|
||||
|
||||
SetCaretPos(pt.x, pt.y);
|
||||
|
||||
if (!ImmIsIME(hKL))
|
||||
|
||||
Reference in New Issue
Block a user