Launcher: add CTRL+J/N keybinds (fixes #694)

This commit is contained in:
Ly-sec
2025-11-10 17:17:31 +01:00
parent 5402ae32f5
commit 20e1086060
2 changed files with 28 additions and 0 deletions

View File

@@ -554,6 +554,26 @@ PanelWindow {
}
}
Shortcut {
sequence: "Ctrl+N"
enabled: root.isPanelOpen
onActivated: {
if (PanelService.openedPanel && PanelService.openedPanel.onCtrlNPressed) {
PanelService.openedPanel.onCtrlNPressed()
}
}
}
Shortcut {
sequence: "Ctrl+P"
enabled: root.isPanelOpen
onActivated: {
if (PanelService.openedPanel && PanelService.openedPanel.onCtrlPPressed) {
PanelService.openedPanel.onCtrlPPressed()
}
}
}
Shortcut {
sequence: "Left"
enabled: root.isPanelOpen

View File

@@ -97,6 +97,14 @@ SmartPanel {
selectPreviousWrapped()
}
function onCtrlNPressed() {
selectNextWrapped()
}
function onCtrlPPressed() {
selectPreviousWrapped()
}
// Public API for plugins
function setSearchText(text) {
searchText = text