Keyboard Shortcuts: replaced and fixed shiftTab to backTab.

This commit is contained in:
ItsLemmy
2025-11-13 08:28:28 -05:00
parent 7021653764
commit 04439699ae
5 changed files with 9 additions and 10 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ Item {
// Note: SmartPanelWindow directly calls these functions via panelWrapper reference
function onEscapePressed() {}
function onTabPressed() {}
function onShiftTabPressed() {}
function onBackTabPressed() {}
function onUpPressed() {}
function onDownPressed() {}
function onLeftPressed() {}
+5 -6
View File
@@ -191,12 +191,11 @@ PanelWindow {
} else if (event.key === Qt.Key_Right && panelWrapper.onRightPressed) {
panelWrapper.onRightPressed()
event.accepted = true
} else if (event.key === Qt.Key_Tab) {
if (event.modifiers & Qt.ShiftModifier && panelWrapper.onShiftTabPressed) {
panelWrapper.onShiftTabPressed()
} else if (panelWrapper.onTabPressed) {
panelWrapper.onTabPressed()
}
} else if (event.key === Qt.Key_Tab && panelWrapper.onTabPressed) {
panelWrapper.onTabPressed()
event.accepted = true
} else if (event.key === Qt.Key_Backtab && panelWrapper.onBackTabPressed) {
panelWrapper.onBackTabPressed()
event.accepted = true
} else if ((event.key === Qt.Key_Return || event.key === Qt.Key_Enter) && panelWrapper.onReturnPressed) {
panelWrapper.onReturnPressed()
+1 -1
View File
@@ -55,7 +55,7 @@ SmartPanel {
selectNextWrapped()
}
function onShiftTabPressed() {
function onBackTabPressed() {
selectPreviousWrapped()
}
+1 -1
View File
@@ -220,7 +220,7 @@ SmartPanel {
selectNextWrapped()
}
function onShiftTabPressed() {
function onBackTabPressed() {
selectPreviousWrapped()
}
+1 -1
View File
@@ -340,7 +340,7 @@ SmartPanel {
selectNextTab()
}
function onShiftTabPressed() {
function onBackTabPressed() {
selectPreviousTab()
}