[vlc-devel] commit: Qt: Return == Enter (Jean-Philippe Andre )

git version control git at videolan.org
Thu Jan 22 19:37:33 CET 2009


vlc | branch: master | Jean-Philippe Andre <jpeg at via.ecp.fr> | Thu Jan 22 19:28:45 2009 +0100| [bd6810fbf8ced9bb7ba764f7cea0f2c3d1b7b30e] | committer: Jean-Philippe Andre 

Qt: Return == Enter

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bd6810fbf8ced9bb7ba764f7cea0f2c3d1b7b30e
---

 modules/gui/qt4/util/qvlcframe.hpp |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt4/util/qvlcframe.hpp b/modules/gui/qt4/util/qvlcframe.hpp
index ddc271d..e7e2099 100644
--- a/modules/gui/qt4/util/qvlcframe.hpp
+++ b/modules/gui/qt4/util/qvlcframe.hpp
@@ -158,7 +158,8 @@ protected:
             msg_Dbg( p_intf, "Escp Key pressed" );
             cancel();
         }
-        else if( keyEvent->key() == Qt::Key_Return )
+        else if( keyEvent->key() == Qt::Key_Return
+              || keyEvent->key() == Qt::Key_Enter )
         {
              msg_Dbg( p_intf, "Enter Key pressed" );
              close();
@@ -197,7 +198,8 @@ protected:
             msg_Dbg( p_intf, "Escp Key pressed" );
             cancel();
         }
-        else if( keyEvent->key() == Qt::Key_Return )
+        else if( keyEvent->key() == Qt::Key_Return
+              || keyEvent->key() == Qt::Key_Enter )
         {
              msg_Dbg( p_intf, "Enter Key pressed" );
              close();




More information about the vlc-devel mailing list