Commit fbda0fa2 authored by Dieter Piringer's avatar Dieter Piringer Committed by Albert Astals Cid

Add Navigation with up, down and ESC keys to the overlay menu

REVIEW: 121139
parent f05bf4c2
......@@ -98,6 +98,24 @@ Item {
hide()
}
}
Keys.onDownPressed: {
if (resumeButton.focus)
restartButton.focus = true;
else if (restartButton.focus)
returnButton.focus = true;
}
Keys.onUpPressed: {
if (restartButton.focus)
resumeButton.focus = true;
else if (returnButton.focus)
restartButton.focus = true;
}
Keys.onEscapePressed: {
hide()
}
}
}
......
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