Commit bcb0ee0b authored by Don Gagne's avatar Don Gagne

Don't use numeric keyboard on iOS

Doesn’t have a done key which doesn’t work with our user model. May
find a better fix later.
parent 27611359
import QtQuick 2.2 import QtQuick 2.2
import QtQuick.Controls 1.2 import QtQuick.Controls 1.2
import QtQuick.Controls.Styles 1.2 import QtQuick.Controls.Styles 1.2
import QtQuick.Dialogs 1.2 import QtQuick.Dialogs 1.2
import QGroundControl.FactSystem 1.0
import QGroundControl.FactSystem 1.0 import QGroundControl.Palette 1.0
import QGroundControl.Palette 1.0 import QGroundControl.Controls 1.0
import QGroundControl.Controls 1.0 import QGroundControl.ScreenTools 1.0
QGCTextField { QGCTextField {
id: _textField id: _textField
...@@ -19,8 +19,10 @@ QGCTextField { ...@@ -19,8 +19,10 @@ QGCTextField {
property string _validateString property string _validateString
// At this point all Facts are numeric // At this point all Facts are numeric
validator: DoubleValidator {} validator: DoubleValidator {}
inputMethodHints: Qt.ImhFormattedNumbersOnly inputMethodHints: ScreenTools.isiOS ?
Qt.ImhNone : // iOS numeric keyboard has not done button, we can't use eit
Qt.ImhFormattedNumbersOnly // Forces use of virtual numeric keyboard
onEditingFinished: { onEditingFinished: {
if (typeof qgcView !== 'undefined' && qgcView) { if (typeof qgcView !== 'undefined' && qgcView) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment