fix(gui): prevent session list from stealing keyboard focus

- ListView and its placeholder label now have activeFocusOnTab: false
  and focus: false so clicking the empty sidebar doesn't steal focus
  from the prompt text area
This commit is contained in:
Levi Neely 2026-08-01 20:14:40 +02:00
parent b68b72b31f
commit c85252b09a
1 changed files with 3 additions and 0 deletions

View File

@ -550,6 +550,8 @@ ApplicationWindow {
Layout.fillHeight: true
model: sessionTreeModel
clip: true
focus: false
activeFocusOnTab: false
// Show placeholder when empty
Label {
@ -559,6 +561,7 @@ ApplicationWindow {
font.italic: true
font.pixelSize: theme.fontSize > 0 ? theme.fontSize * 0.9 : 12
visible: sessionList.count === 0
activeFocusOnTab: false
}
delegate: ItemDelegate {