feat: input mgr

This commit is contained in:
2026-01-24 14:35:16 +02:00
parent 1a37e76c4a
commit e5d5b2e086
14 changed files with 418 additions and 67 deletions

65
Shell/InputShortcuts.qml Normal file
View File

@@ -0,0 +1,65 @@
import QtQuick
import Quickshell
import Quickshell.Hyprland
import "."
Item {
id: shortcuts
property var manager: ShellInputManager
GlobalShortcut {
appid: "deltarune"
triggerDescription: "Close the menu"
name: "shell_close"
onReleased: manager.closeShell();
}
GlobalShortcut {
appid: "deltarune"
triggerDescription: "Open the menu"
name: "shell_open"
onReleased: manager.openShell();
}
GlobalShortcut {
appid: "deltarune"
triggerDescription: "Input back"
name: "input_back"
onReleased: manager.handleKeyInternal(Qt.Key_Shift);
}
GlobalShortcut {
appid: "deltarune"
triggerDescription: "Input submit"
name: "input_enter"
onReleased: manager.handleKeyInternal(Qt.Key_Enter);
}
GlobalShortcut {
appid: "deltarune"
triggerDescription: "Input up"
name: "input_up"
onReleased: manager.handleKeyInternal(Qt.Key_Up);
}
GlobalShortcut {
appid: "deltarune"
triggerDescription: "Input down"
name: "input_down"
onReleased: manager.handleKeyInternal(Qt.Key_Down);
}
GlobalShortcut {
appid: "deltarune"
triggerDescription: "Input left"
name: "input_left"
onReleased: manager.handleKeyInternal(Qt.Key_Left);
}
GlobalShortcut {
appid: "deltarune"
triggerDescription: "Input right"
name: "input_right"
onReleased: manager.handleKeyInternal(Qt.Key_Right);
}
}