Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VLC Browser Plugins
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
VideoLAN
VLC Browser Plugins
Commits
1b13b853
Commit
1b13b853
authored
Jan 15, 2013
by
Ludovic Fauvet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Win32: escape fullscreen with the escape key
parent
46a7255a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
common/win32_fullscreen.cpp
common/win32_fullscreen.cpp
+15
-0
common/win32_fullscreen.h
common/win32_fullscreen.h
+1
-0
No files found.
common/win32_fullscreen.cpp
View file @
1b13b853
...
...
@@ -898,6 +898,11 @@ LRESULT CALLBACK VLCFullScreenWnd::FSWndWindowProc(HWND hWnd, UINT uMsg, WPARAM
}
break
;
}
case
WM_KEYDOWN
:
{
if
(
fs_data
)
fs_data
->
_WindowsManager
->
OnKeyDownEvent
(
wParam
);
break
;
}
default:
return
DefWindowProc
(
hWnd
,
uMsg
,
wParam
,
lParam
);
}
...
...
@@ -1064,6 +1069,16 @@ bool VLCWindowsManager::IsFullScreen()
return
0
!=
_FSWnd
&&
0
!=
_HolderWnd
&&
GetParent
(
_HolderWnd
->
hWnd
())
==
_FSWnd
->
getHWND
();
}
void
VLCWindowsManager
::
OnKeyDownEvent
(
UINT
uKeyMsg
)
{
switch
(
uKeyMsg
){
case
VK_ESCAPE
:
case
'F'
:
EndFullScreen
();
break
;
}
}
void
VLCWindowsManager
::
OnMouseEvent
(
UINT
uMouseMsg
)
{
switch
(
uMouseMsg
){
...
...
common/win32_fullscreen.h
View file @
1b13b853
...
...
@@ -285,6 +285,7 @@ public:
bool
getNewMessageFlag
()
const
{
return
_b_new_messages_flag
;};
public:
void
OnKeyDownEvent
(
UINT
uKeyMsg
);
void
OnMouseEvent
(
UINT
uMouseMsg
);
private:
...
...
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