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
58ae3a7f
Commit
58ae3a7f
authored
May 26, 2011
by
Vincent Povirk
Committed by
Alexandre Julliard
Jun 08, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Add test showing hotkeys change the async key state.
parent
03fbf37f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
msg.c
dlls/user32/tests/msg.c
+4
-0
No files found.
dlls/user32/tests/msg.c
View file @
58ae3a7f
...
@@ -13076,6 +13076,7 @@ static void test_hotkey(void)
...
@@ -13076,6 +13076,7 @@ static void test_hotkey(void)
HWND
test_window
,
taskbar_window
;
HWND
test_window
,
taskbar_window
;
BOOL
ret
;
BOOL
ret
;
MSG
msg
;
MSG
msg
;
SHORT
key_state
;
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
ret
=
UnregisterHotKey
(
NULL
,
0
);
ret
=
UnregisterHotKey
(
NULL
,
0
);
...
@@ -13176,6 +13177,9 @@ static void test_hotkey(void)
...
@@ -13176,6 +13177,9 @@ static void test_hotkey(void)
}
}
ok_sequence
(
WmHotkeyPress
,
"window hotkey press"
,
FALSE
);
ok_sequence
(
WmHotkeyPress
,
"window hotkey press"
,
FALSE
);
key_state
=
GetAsyncKeyState
(
hotkey_letter
);
ok
((
key_state
&
0x8000
)
==
0x8000
,
"unexpected key state %x
\n
"
,
key_state
);
keybd_event
(
hotkey_letter
,
0
,
KEYEVENTF_KEYUP
,
0
);
keybd_event
(
hotkey_letter
,
0
,
KEYEVENTF_KEYUP
,
0
);
while
(
PeekMessage
(
&
msg
,
NULL
,
WM_KEYFIRST
,
WM_KEYLAST
,
PM_REMOVE
)
||
while
(
PeekMessage
(
&
msg
,
NULL
,
WM_KEYFIRST
,
WM_KEYLAST
,
PM_REMOVE
)
||
PeekMessage
(
&
msg
,
NULL
,
WM_HOTKEY
,
WM_HOTKEY
,
PM_REMOVE
))
PeekMessage
(
&
msg
,
NULL
,
WM_HOTKEY
,
WM_HOTKEY
,
PM_REMOVE
))
...
...
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