mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-06-02 18:42:04 +00:00
Keyboard Shortcuts: replaced and fixed shiftTab to backTab.
This commit is contained in:
@@ -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() {}
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -55,7 +55,7 @@ SmartPanel {
|
||||
selectNextWrapped()
|
||||
}
|
||||
|
||||
function onShiftTabPressed() {
|
||||
function onBackTabPressed() {
|
||||
selectPreviousWrapped()
|
||||
}
|
||||
|
||||
|
||||
@@ -220,7 +220,7 @@ SmartPanel {
|
||||
selectNextWrapped()
|
||||
}
|
||||
|
||||
function onShiftTabPressed() {
|
||||
function onBackTabPressed() {
|
||||
selectPreviousWrapped()
|
||||
}
|
||||
|
||||
|
||||
@@ -340,7 +340,7 @@ SmartPanel {
|
||||
selectNextTab()
|
||||
}
|
||||
|
||||
function onShiftTabPressed() {
|
||||
function onBackTabPressed() {
|
||||
selectPreviousTab()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user