mirror of
https://github.com/lubosz/overte.git
synced 2025-04-14 14:46:55 +02:00
Fix default focus
This commit is contained in:
parent
81169c59c8
commit
b68837277c
2 changed files with 6 additions and 1 deletions
|
@ -46,6 +46,11 @@ Window {
|
|||
|
||||
Component.onCompleted: updateRunningScripts()
|
||||
|
||||
function setDefaultFocus() {
|
||||
// Work around FocusScope of scrollable window.
|
||||
filterEdit.forceActiveFocus();
|
||||
}
|
||||
|
||||
function updateRunningScripts() {
|
||||
var runningScripts = ScriptDiscoveryService.getRunning();
|
||||
runningScriptsModel.clear()
|
||||
|
|
|
@ -199,7 +199,7 @@ Fadable {
|
|||
|
||||
children: [ swallower, frame, pane, activator ]
|
||||
|
||||
Component.onCompleted: raise();
|
||||
Component.onCompleted: { raise(); setDefaultFocus(); }
|
||||
Component.onDestruction: windowDestroyed();
|
||||
onParentChanged: raise();
|
||||
|
||||
|
|
Loading…
Reference in a new issue