Commit 766f52a3 authored by Willyanto's avatar Willyanto

Fix pressing alt+G and Enter/Return redeals current game

BUG: 408931
parent 93b72a36
......@@ -356,9 +356,14 @@ void GameSelectionScene::keyReleaseEvent( QKeyEvent * event )
++m_selectionIndex;
m_boxes.at( m_selectionIndex )->setHighlighted( true );
}
else if ( ( event->key() == Qt::Key_Return
|| event->key() ==Qt::Key_Enter
|| event->key() ==Qt::Key_Space )
}
void GameSelectionScene::keyPressEvent( QKeyEvent * event )
{
if ( ( event->key() == Qt::Key_Return
|| event->key() == Qt::Key_Enter
|| event->key() == Qt::Key_Space )
&& m_selectionIndex != -1 )
{
Q_EMIT gameSelected( m_boxes.at( m_selectionIndex )->id() );
......
......@@ -39,6 +39,7 @@ Q_SIGNALS:
protected:
void keyReleaseEvent( QKeyEvent * event ) override;
void keyPressEvent( QKeyEvent * event ) override;
private Q_SLOTS:
void boxHoverChanged( GameSelectionBox * box, bool hovered );
......
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