Commit bd6810fb authored by Jean-Philippe Andre's avatar Jean-Philippe Andre

Qt: Return == Enter

parent 8b01598e
...@@ -158,7 +158,8 @@ protected: ...@@ -158,7 +158,8 @@ protected:
msg_Dbg( p_intf, "Escp Key pressed" ); msg_Dbg( p_intf, "Escp Key pressed" );
cancel(); 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" ); msg_Dbg( p_intf, "Enter Key pressed" );
close(); close();
...@@ -197,7 +198,8 @@ protected: ...@@ -197,7 +198,8 @@ protected:
msg_Dbg( p_intf, "Escp Key pressed" ); msg_Dbg( p_intf, "Escp Key pressed" );
cancel(); 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" ); msg_Dbg( p_intf, "Enter Key pressed" );
close(); close();
......
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