diff --git a/app/gui/AppView.qml b/app/gui/AppView.qml index c37c4eb3..bbc0f8bd 100644 --- a/app/gui/AppView.qml +++ b/app/gui/AppView.qml @@ -245,6 +245,17 @@ CenteredGridView { } } + Keys.onEnterPressed: { + // Open the app context menu if activated via the gamepad or keyboard + // for running games. If the game isn't running, the above onClicked + // method will handle the launch. + if (model.running) { + // This will be keyboard/gamepad driven so use + // open() instead of popup() + appContextMenu.open() + } + } + Keys.onMenuPressed: { // This will be keyboard/gamepad driven so use open() instead of popup() appContextMenu.open() diff --git a/app/gui/NavigableItemDelegate.qml b/app/gui/NavigableItemDelegate.qml index f0f37c53..94bb85be 100644 --- a/app/gui/NavigableItemDelegate.qml +++ b/app/gui/NavigableItemDelegate.qml @@ -21,4 +21,7 @@ ItemDelegate { Keys.onReturnPressed: { clicked() } + Keys.onEnterPressed: { + clicked() + } } diff --git a/app/gui/NavigableMenuItem.qml b/app/gui/NavigableMenuItem.qml index da7362dc..f1df3a77 100644 --- a/app/gui/NavigableMenuItem.qml +++ b/app/gui/NavigableMenuItem.qml @@ -22,6 +22,10 @@ MenuItem { triggered() } + Keys.onEnterPressed: { + triggered() + } + Keys.onEscapePressed: { parentMenu.close() } diff --git a/app/gui/NavigableMessageDialog.qml b/app/gui/NavigableMessageDialog.qml index b1e28b10..bf055286 100644 --- a/app/gui/NavigableMessageDialog.qml +++ b/app/gui/NavigableMessageDialog.qml @@ -56,6 +56,10 @@ NavigableDialog { accept() } + Keys.onEnterPressed: { + accept() + } + Keys.onEscapePressed: { reject() } diff --git a/app/gui/NavigableToolButton.qml b/app/gui/NavigableToolButton.qml index ce01255a..5fee6f5d 100644 --- a/app/gui/NavigableToolButton.qml +++ b/app/gui/NavigableToolButton.qml @@ -27,6 +27,10 @@ ToolButton { clicked() } + Keys.onEnterPressed: { + clicked() + } + Keys.onRightPressed: { nextItemInFocusChain(true).forceActiveFocus(Qt.TabFocus) } diff --git a/app/gui/PcView.qml b/app/gui/PcView.qml index 35062d7c..79594daf 100644 --- a/app/gui/PcView.qml +++ b/app/gui/PcView.qml @@ -379,6 +379,10 @@ CenteredGridView { Keys.onReturnPressed: { renamePcDialog.accept() } + + Keys.onEnterPressed: { + renamePcDialog.accept() + } } } } diff --git a/app/gui/SettingsView.qml b/app/gui/SettingsView.qml index 193486d6..33cb0e51 100644 --- a/app/gui/SettingsView.qml +++ b/app/gui/SettingsView.qml @@ -358,6 +358,10 @@ Flickable { Keys.onReturnPressed: { customResolutionDialog.accept() } + + Keys.onEnterPressed: { + customResolutionDialog.accept() + } } Label { @@ -382,6 +386,10 @@ Flickable { Keys.onReturnPressed: { customResolutionDialog.accept() } + + Keys.onEnterPressed: { + customResolutionDialog.accept() + } } } } diff --git a/app/gui/main.qml b/app/gui/main.qml index 89350cf8..92c140bc 100644 --- a/app/gui/main.qml +++ b/app/gui/main.qml @@ -495,6 +495,10 @@ ApplicationWindow { Keys.onReturnPressed: { addPcDialog.accept() } + + Keys.onEnterPressed: { + addPcDialog.accept() + } } } }