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:
parent
b68b72b31f
commit
c85252b09a
|
|
@ -550,6 +550,8 @@ ApplicationWindow {
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
model: sessionTreeModel
|
model: sessionTreeModel
|
||||||
clip: true
|
clip: true
|
||||||
|
focus: false
|
||||||
|
activeFocusOnTab: false
|
||||||
|
|
||||||
// Show placeholder when empty
|
// Show placeholder when empty
|
||||||
Label {
|
Label {
|
||||||
|
|
@ -559,6 +561,7 @@ ApplicationWindow {
|
||||||
font.italic: true
|
font.italic: true
|
||||||
font.pixelSize: theme.fontSize > 0 ? theme.fontSize * 0.9 : 12
|
font.pixelSize: theme.fontSize > 0 ? theme.fontSize * 0.9 : 12
|
||||||
visible: sessionList.count === 0
|
visible: sessionList.count === 0
|
||||||
|
activeFocusOnTab: false
|
||||||
}
|
}
|
||||||
|
|
||||||
delegate: ItemDelegate {
|
delegate: ItemDelegate {
|
||||||
|
|
|
||||||
Reference in New Issue