Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
b6c4beda
Commit
b6c4beda
authored
Dec 21, 2005
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Dec 21, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvideo: Handle ESC key press in the MCIWND class as an alias to stop command.
parent
180326bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
mciwnd.c
dlls/msvideo/mciwnd.c
+18
-0
No files found.
dlls/msvideo/mciwnd.c
View file @
b6c4beda
...
...
@@ -429,6 +429,21 @@ static LRESULT mci_get_devcaps(MCIWndInfo *mwi, UINT cap)
return
mci_devcaps
.
dwReturn
;
}
static
LRESULT
MCIWND_KeyDown
(
MCIWndInfo
*
mwi
,
UINT
key
)
{
TRACE
(
"%p, key %04x
\n
"
,
mwi
->
hWnd
,
key
);
switch
(
key
)
{
case
VK_ESCAPE
:
SendMessageW
(
mwi
->
hWnd
,
MCI_STOP
,
0
,
0
);
return
0
;
default:
return
0
;
}
}
static
LRESULT
WINAPI
MCIWndProc
(
HWND
hWnd
,
UINT
wMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
MCIWndInfo
*
mwi
;
...
...
@@ -477,6 +492,9 @@ static LRESULT WINAPI MCIWndProc(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lPa
case
WM_COMMAND
:
return
MCIWND_Command
(
mwi
,
wParam
,
lParam
);
case
WM_KEYDOWN
:
return
MCIWND_KeyDown
(
mwi
,
wParam
);
case
WM_NCACTIVATE
:
if
(
mwi
->
uTimer
)
{
...
...
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