mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 21:12:53 +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()
|
Component.onCompleted: updateRunningScripts()
|
||||||
|
|
||||||
|
function setDefaultFocus() {
|
||||||
|
// Work around FocusScope of scrollable window.
|
||||||
|
filterEdit.forceActiveFocus();
|
||||||
|
}
|
||||||
|
|
||||||
function updateRunningScripts() {
|
function updateRunningScripts() {
|
||||||
var runningScripts = ScriptDiscoveryService.getRunning();
|
var runningScripts = ScriptDiscoveryService.getRunning();
|
||||||
runningScriptsModel.clear()
|
runningScriptsModel.clear()
|
||||||
|
|
|
@ -199,7 +199,7 @@ Fadable {
|
||||||
|
|
||||||
children: [ swallower, frame, pane, activator ]
|
children: [ swallower, frame, pane, activator ]
|
||||||
|
|
||||||
Component.onCompleted: raise();
|
Component.onCompleted: { raise(); setDefaultFocus(); }
|
||||||
Component.onDestruction: windowDestroyed();
|
Component.onDestruction: windowDestroyed();
|
||||||
onParentChanged: raise();
|
onParentChanged: raise();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue