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
dc969d47
Commit
dc969d47
authored
Oct 28, 2003
by
Rein Klazes
Committed by
Alexandre Julliard
Oct 28, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct the logic that decides whether a WM_SYSKEYUP/DOWN or a
WM_KEYUP/DOWN message is to be sent.
parent
fa755119
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
5 deletions
+18
-5
input.c
windows/input.c
+18
-5
No files found.
windows/input.c
View file @
dc969d47
...
...
@@ -55,6 +55,8 @@ static BOOL SwappedButtons;
BYTE
InputKeyStateTable
[
256
];
BYTE
AsyncKeyStateTable
[
256
];
BYTE
TrackSysKey
=
0
;
/* determine whether ALT key up will cause a WM_SYSKEYUP
or a WM_KEYUP message */
/* Storage for the USER-maintained mouse positions */
static
DWORD
PosX
,
PosY
;
...
...
@@ -152,14 +154,21 @@ static void queue_kbd_event( const KEYBDINPUT *ki, UINT injected_flags )
/* it's '1' under windows, when a dialog box appears
* and you press one of the underlined keys - DF*/
/* note that there is a test for all this */
if
(
ki
->
dwFlags
&
KEYEVENTF_KEYUP
)
{
BOOL
sysKey
=
(
InputKeyStateTable
[
VK_MENU
]
&
0x80
)
&&
!
(
InputKeyStateTable
[
VK_CONTROL
]
&
0x80
);
message
=
WM_KEYUP
;
if
(
(
InputKeyStateTable
[
VK_MENU
]
&
0x80
)
&&
(
(
ki
->
wVk
==
VK_MENU
)
||
(
ki
->
wVk
==
VK_CONTROL
)
||
!
(
InputKeyStateTable
[
VK_CONTROL
]
&
0x80
)))
{
if
(
TrackSysKey
==
VK_MENU
||
/* <ALT>-down/<ALT>-up sequence */
(
ki
->
wVk
!=
VK_MENU
))
/* <ALT>-down...<something else>-up */
message
=
WM_SYSKEYUP
;
TrackSysKey
=
0
;
}
InputKeyStateTable
[
ki
->
wVk
]
&=
~
0x80
;
keylp
.
lp1
.
previous
=
1
;
keylp
.
lp1
.
transition
=
1
;
message
=
sysKey
?
WM_SYSKEYUP
:
WM_KEYUP
;
}
else
{
...
...
@@ -169,8 +178,12 @@ static void queue_kbd_event( const KEYBDINPUT *ki, UINT injected_flags )
InputKeyStateTable
[
ki
->
wVk
]
|=
0x80
;
AsyncKeyStateTable
[
ki
->
wVk
]
|=
0x80
;
message
=
(
InputKeyStateTable
[
VK_MENU
]
&
0x80
)
&&
!
(
InputKeyStateTable
[
VK_CONTROL
]
&
0x80
)
?
WM_SYSKEYDOWN
:
WM_KEYDOWN
;
message
=
WM_KEYDOWN
;
if
(
(
InputKeyStateTable
[
VK_MENU
]
&
0x80
)
&&
!
(
InputKeyStateTable
[
VK_CONTROL
]
&
0x80
))
{
message
=
WM_SYSKEYDOWN
;
TrackSysKey
=
ki
->
wVk
;
}
}
keylp
.
lp1
.
context
=
(
InputKeyStateTable
[
VK_MENU
]
&
0x80
)
!=
0
;
/* 1 if alt */
...
...
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