mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 13:37:12 +00:00
[NtUser]
- If focus window null use active. svn path=/trunk/; revision=72202
This commit is contained in:
parent
5b2fac1964
commit
d3001862bf
1 changed files with 7 additions and 1 deletions
|
@ -410,6 +410,7 @@ static PKL
|
||||||
co_UserActivateKbl(PTHREADINFO pti, PKL pKl, UINT Flags)
|
co_UserActivateKbl(PTHREADINFO pti, PKL pKl, UINT Flags)
|
||||||
{
|
{
|
||||||
PKL pklPrev;
|
PKL pklPrev;
|
||||||
|
PWND pWnd;
|
||||||
|
|
||||||
pklPrev = pti->KeyboardLayout;
|
pklPrev = pti->KeyboardLayout;
|
||||||
if (pklPrev)
|
if (pklPrev)
|
||||||
|
@ -424,8 +425,13 @@ co_UserActivateKbl(PTHREADINFO pti, PKL pKl, UINT Flags)
|
||||||
// FIXME
|
// FIXME
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!(pWnd = pti->MessageQueue->spwndFocus))
|
||||||
|
{
|
||||||
|
pWnd = pti->MessageQueue->spwndActive;
|
||||||
|
}
|
||||||
|
|
||||||
// Send WM_INPUTLANGCHANGE to thread's focus window
|
// Send WM_INPUTLANGCHANGE to thread's focus window
|
||||||
co_IntSendMessage(pti->MessageQueue->spwndFocus ? UserHMGetHandle(pti->MessageQueue->spwndFocus) : 0,
|
co_IntSendMessage( pWnd ? UserHMGetHandle(pWnd) : 0,
|
||||||
WM_INPUTLANGCHANGE,
|
WM_INPUTLANGCHANGE,
|
||||||
(WPARAM)pKl->iBaseCharset, // FIXME: How to set it?
|
(WPARAM)pKl->iBaseCharset, // FIXME: How to set it?
|
||||||
(LPARAM)pKl->hkl); // hkl
|
(LPARAM)pKl->hkl); // hkl
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue