mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00: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:
parent
2505489d29
commit
fb43301bad
2 changed files with 10 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue