mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 16:55:07 +02:00
Avoid keyboard appearing on startup
This commit is contained in:
parent
b34fb3a57f
commit
94a8aad712
1 changed files with 24 additions and 0 deletions
24
interface/resources/qml/desktop/+android/FocusHack.qml
Normal file
24
interface/resources/qml/desktop/+android/FocusHack.qml
Normal file
|
@ -0,0 +1,24 @@
|
|||
//
|
||||
// FocusHack.qml
|
||||
//
|
||||
// Created by Bradley Austin Davis on 21 Jan 2015
|
||||
// Copyright 2016 High Fidelity, Inc.
|
||||
//
|
||||
// Distributed under the Apache License, Version 2.0.
|
||||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||
//
|
||||
|
||||
import QtQuick 2.5
|
||||
|
||||
FocusScope {
|
||||
id: root
|
||||
objectName: "FocusHack"
|
||||
|
||||
TextInput {
|
||||
id: textInput;
|
||||
focus: true
|
||||
width: 10; height: 10
|
||||
onActiveFocusChanged: root.destroy()
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in a new issue