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
18ce388d
Commit
18ce388d
authored
May 18, 2001
by
Ulrich Czekalla
Committed by
Alexandre Julliard
May 18, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix menu behaviour when escape is pressed.
parent
7a0d4ba2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
1 deletion
+36
-1
menu.c
controls/menu.c
+36
-1
No files found.
controls/menu.c
View file @
18ce388d
...
...
@@ -2468,6 +2468,41 @@ static BOOL MENU_SuspendPopup( MTRACKER* pmt, UINT16 uMsg )
}
/***********************************************************************
* MENU_KeyEscape
*
* Handle a VK_ESCAPE key event in a menu.
*/
static
BOOL
MENU_KeyEscape
(
MTRACKER
*
pmt
,
UINT
wFlags
)
{
BOOL
bEndMenu
=
TRUE
;
if
(
pmt
->
hCurrentMenu
!=
pmt
->
hTopMenu
)
{
POPUPMENU
*
menu
=
MENU_GetMenu
(
pmt
->
hCurrentMenu
);
if
(
menu
->
wFlags
&
MF_POPUP
)
{
HMENU
hmenutmp
,
hmenuprev
;
hmenuprev
=
hmenutmp
=
pmt
->
hTopMenu
;
/* close topmost popup */
while
(
hmenutmp
!=
pmt
->
hCurrentMenu
)
{
hmenuprev
=
hmenutmp
;
hmenutmp
=
MENU_GetSubPopup
(
hmenuprev
);
}
MENU_HideSubPopups
(
pmt
->
hOwnerWnd
,
hmenuprev
,
TRUE
);
pmt
->
hCurrentMenu
=
hmenuprev
;
bEndMenu
=
FALSE
;
}
}
return
bEndMenu
;
}
/***********************************************************************
* MENU_KeyLeft
*
* Handle a VK_LEFT key event in a menu.
...
...
@@ -2747,7 +2782,7 @@ static INT MENU_TrackMenu( HMENU hmenu, UINT wFlags, INT x, INT y,
break
;
case
VK_ESCAPE
:
fEndMenu
=
TRUE
;
fEndMenu
=
MENU_KeyEscape
(
&
mt
,
wFlags
)
;
break
;
case
VK_F1
:
...
...
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