[vlc-commits] Leave minimal interface if Esc key was pressed
Tobias Güntner
git at videolan.org
Thu Feb 2 09:54:53 CET 2012
vlc | branch: master | Tobias Güntner <fatbull at web.de> | Wed Feb 1 23:46:59 2012 +0100| [6e3489732966f4b124b4d68a53988b593c08777b] | committer: Jean-Baptiste Kempf
Leave minimal interface if Esc key was pressed
Close #5898
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6e3489732966f4b124b4d68a53988b593c08777b
---
modules/gui/qt4/main_interface.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp
index 98011a6..afc9456 100644
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -1289,7 +1289,8 @@ void MainInterface::keyPressEvent( QKeyEvent *e )
void MainInterface::handleKeyPress( QKeyEvent *e )
{
- if( ( e->modifiers() & Qt::ControlModifier ) && ( e->key() == Qt::Key_H ) )
+ if( ( ( e->modifiers() & Qt::ControlModifier ) && ( e->key() == Qt::Key_H ) ) ||
+ ( b_minimalView && !b_videoFullScreen && e->key() == Qt::Key_Escape ) )
{
toggleMinimalView( !b_minimalView );
e->accept();
More information about the vlc-commits
mailing list