66 lines
1.5 KiB
QML
66 lines
1.5 KiB
QML
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);
|
|
}
|
|
}
|