Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
cbf4671d
Commit
cbf4671d
authored
May 08, 2009
by
Aric Stewart
Committed by
Alexandre Julliard
May 11, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msctf: Implement ITfKeystrokeMgr::GetForeground.
parent
161fa4bc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
3 deletions
+17
-3
inputprocessor.c
dlls/msctf/tests/inputprocessor.c
+1
-1
threadmgr.c
dlls/msctf/threadmgr.c
+16
-2
No files found.
dlls/msctf/tests/inputprocessor.c
View file @
cbf4671d
...
...
@@ -406,7 +406,7 @@ static void test_KeystrokeMgr(void)
test_KEV_OnSetFocus
=
SINK_EXPECTED
;
hr
=
ITfKeystrokeMgr_AdviseKeyEventSink
(
keymgr
,
tid
,
sink
,
TRUE
);
ok
(
SUCCEEDED
(
hr
),
"ITfKeystrokeMgr_AdviseKeyEventSink failed
\n
"
);
todo_wine
ok
(
test_KEV_OnSetFocus
==
SINK_FIRED
,
"KeyEventSink_OnSetFocus not fired as expected
\n
"
);
ok
(
test_KEV_OnSetFocus
==
SINK_FIRED
,
"KeyEventSink_OnSetFocus not fired as expected
\n
"
);
hr
=
ITfKeystrokeMgr_AdviseKeyEventSink
(
keymgr
,
tid
,
sink
,
TRUE
);
ok
(
hr
==
CONNECT_E_ADVISELIMIT
,
"Wrong return, expected CONNECT_E_ADVISELIMIT
\n
"
);
hr
=
ITfKeystrokeMgr_AdviseKeyEventSink
(
keymgr
,
cid
,
sink
,
TRUE
);
...
...
dlls/msctf/threadmgr.c
View file @
cbf4671d
...
...
@@ -79,6 +79,7 @@ typedef struct tagACLMulti {
LONG
activationCount
;
ITfKeyEventSink
*
forgroundKeyEventSink
;
CLSID
forgroundTextService
;
struct
list
CurrentPreservedKeys
;
...
...
@@ -535,9 +536,14 @@ static HRESULT WINAPI KeystrokeMgr_AdviseKeyEventSink(ITfKeystrokeMgr *iface,
if
(
fForeground
)
{
if
(
This
->
forgroundKeyEventSink
)
{
ITfKeyEventSink_OnSetFocus
(
This
->
forgroundKeyEventSink
,
FALSE
);
ITfKeyEventSink_Release
(
This
->
forgroundKeyEventSink
);
}
ITfKeyEventSink_AddRef
(
check
);
ITfKeyEventSink_OnSetFocus
(
check
,
TRUE
);
This
->
forgroundKeyEventSink
=
check
;
This
->
forgroundTextService
=
textservice
;
}
return
S_OK
;
}
...
...
@@ -569,6 +575,7 @@ static HRESULT WINAPI KeystrokeMgr_UnadviseKeyEventSink(ITfKeystrokeMgr *iface,
{
ITfKeyEventSink_Release
(
This
->
forgroundKeyEventSink
);
This
->
forgroundKeyEventSink
=
NULL
;
This
->
forgroundTextService
=
GUID_NULL
;
}
return
S_OK
;
}
...
...
@@ -577,8 +584,15 @@ static HRESULT WINAPI KeystrokeMgr_GetForeground(ITfKeystrokeMgr *iface,
CLSID
*
pclsid
)
{
ThreadMgr
*
This
=
impl_from_ITfKeystrokeMgrVtbl
(
iface
);
FIXME
(
"STUB:(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
TRACE
(
"(%p) %p
\n
"
,
This
,
pclsid
);
if
(
!
pclsid
)
return
E_INVALIDARG
;
if
(
IsEqualCLSID
(
&
This
->
forgroundTextService
,
&
GUID_NULL
))
return
S_FALSE
;
*
pclsid
=
This
->
forgroundTextService
;
return
S_OK
;
}
static
HRESULT
WINAPI
KeystrokeMgr_TestKeyDown
(
ITfKeystrokeMgr
*
iface
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment