Use Tab to switch bar panels

This commit is contained in:
David Heinemeier Hansson
2026-05-27 10:40:32 +02:00
parent 848499a76b
commit b03a7cc73c
8 changed files with 61 additions and 1 deletions
+1 -1
View File
@@ -559,7 +559,7 @@ Panel {
}
onActivateRequested: if (root.cursorActive) root.activateCursor()
onCloseRequested: root.close()
onTabRequested: function(direction) { root.moveSection(direction) }
onTabRequested: function(direction) { root.switchPanel(direction) }
onTextKey: function(t) {
// 'm' mutes whatever the cursor is on: focused section's slider
// for output/input, the focused stream for streams.
+1
View File
@@ -434,6 +434,7 @@ Panel {
}
onActivateRequested: if (root.cursorActive) root.activateCursor()
onCloseRequested: root.close()
onTabRequested: function(direction) { root.switchPanel(direction) }
onDeleteRequested: if (root.cursorActive) root.deleteSelected()
Column {
+1
View File
@@ -372,6 +372,7 @@ Panel {
}
onActivateRequested: if (root.cursorActive) root.activateCursor()
onCloseRequested: root.close()
onTabRequested: function(direction) { root.switchPanel(direction) }
ScrollView {
id: scrollArea
+1
View File
@@ -664,6 +664,7 @@ Panel {
}
}
onCloseRequested: root.close()
onTabRequested: function(direction) { root.switchPanel(direction) }
onTextKey: function(t) {
if (t === "r" || t === "R") root.refresh()
}
+1
View File
@@ -279,6 +279,7 @@ Panel {
}
onActivateRequested: if (root.cursorActive) root.activateSelectedProfile()
onCloseRequested: root.close()
onTabRequested: function(direction) { root.switchPanel(direction) }
Column {
id: column
+1
View File
@@ -296,6 +296,7 @@ Panel {
}
onActivateRequested: if (root.cursorActive) root.activateCursor()
onCloseRequested: root.close()
onTabRequested: function(direction) { root.switchPanel(direction) }
onTextKey: function(t) {
if (t === "t" || t === "T") tailscale.toggleTailscale()
else if (t === "c" || t === "C") tailscale.copyPeerIp(root.selectedPeer())