Commit 632b91a9 authored by Tobias Güntner's avatar Tobias Güntner Committed by Jean-Baptiste Kempf

Leave minimal interface if Esc key was pressed

Close #5898
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit 6e3489732966f4b124b4d68a53988b593c08777b)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent e881d320
......@@ -1302,7 +1302,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();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment