mirror of
https://github.com/theupriser/steamify-cachyos.git
synced 2026-10-03 17:41:58 +02:00
fix(ui): Enter selects (a Steam Controller's A in Steam's desktop layout); Ctrl+Enter reviews and applies
This commit is contained in:
1 parent
59c746b3fe
commit
aee51b9bf1
2 files changed
+6
-2
No files matched your search
+5
-1
@@ -261,7 +261,11 @@ Item {
|
||||
else if (k === Qt.Key_Left) act("left");
|
||||
else if (k === Qt.Key_Right) act("right");
|
||||
else if (k === Qt.Key_Space) act("accept");
|
||||
else if (k === Qt.Key_Return || k === Qt.Key_Enter) act(Input.type === "remote" || screen !== "menu" ? "accept" : "apply");
|
||||
// Enter selects, like A on a controller: Steam's desktop layout sends
|
||||
// Enter for a Steam Controller's A (and Space for Y). Ctrl+Enter
|
||||
// goes straight to Review & apply.
|
||||
else if ((k === Qt.Key_Return || k === Qt.Key_Enter) && (e.modifiers & Qt.ControlModifier)) act("apply");
|
||||
else if (k === Qt.Key_Return || k === Qt.Key_Enter) act("accept");
|
||||
else if (k === Qt.Key_Escape || k === Qt.Key_Back || k === Qt.Key_Backspace) { if (!e.isAutoRepeat) act("back"); }
|
||||
else if (k === Qt.Key_R) act("reapply");
|
||||
else return;
|
||||
|
||||
Reference in new issue
Block a user