Keyboard: fixed backtab

This commit is contained in:
ItsLemmy
2025-12-04 07:06:43 -05:00
parent c070b0051f
commit 027aed64e4
2 changed files with 5 additions and 15 deletions
+4 -14
View File
@@ -418,7 +418,7 @@ PanelWindow {
// Centralized Keyboard Shortcuts
// ========================================
// These shortcuts delegate to the opened panel's handler functions
// Panels can implement: onEscapePressed, onTabPressed, onShiftTabPressed,
// Panels can implement: onEscapePressed, onTabPressed, onBackTabPressed,
// onUpPressed, onDownPressed, onReturnPressed
Shortcut {
@@ -444,11 +444,11 @@ PanelWindow {
}
Shortcut {
sequence: "Shift+Tab"
sequence: "Backtab"
enabled: root.isPanelOpen
onActivated: {
if (PanelService.openedPanel && PanelService.openedPanel.onShiftTabPressed) {
PanelService.openedPanel.onShiftTabPressed();
if (PanelService.openedPanel && PanelService.openedPanel.onBackTabPressed) {
PanelService.openedPanel.onBackTabPressed();
}
}
}
@@ -543,16 +543,6 @@ PanelWindow {
}
}
Shortcut {
sequence: "Backtab"
enabled: root.isPanelOpen
onActivated: {
if (PanelService.openedPanel && PanelService.openedPanel.onBackTabPressed) {
PanelService.openedPanel.onBackTabPressed();
}
}
}
Shortcut {
sequence: "Ctrl+J"
enabled: root.isPanelOpen
+1 -1
View File
@@ -76,7 +76,7 @@ Item {
}
function onTabPressed() {
}
function onShiftTabPressed() {
function onBackTabPressed() {
}
function onUpPressed() {
}