feat: input mgr
This commit is contained in:
65
Shell/InputShortcuts.qml
Normal file
65
Shell/InputShortcuts.qml
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user