Browse Source

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.
QGC4.4
Don Gagne 9 years ago
parent
commit
bcb0ee0bc1
  1. 6
      src/FactSystem/FactControls/FactTextField.qml

6
src/FactSystem/FactControls/FactTextField.qml

@ -3,10 +3,10 @@ import QtQuick.Controls 1.2 @@ -3,10 +3,10 @@ import QtQuick.Controls 1.2
import QtQuick.Controls.Styles 1.2
import QtQuick.Dialogs 1.2
import QGroundControl.FactSystem 1.0
import QGroundControl.Palette 1.0
import QGroundControl.Controls 1.0
import QGroundControl.ScreenTools 1.0
QGCTextField {
id: _textField
@ -20,7 +20,9 @@ QGCTextField { @@ -20,7 +20,9 @@ QGCTextField {
// At this point all Facts are numeric
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: {
if (typeof qgcView !== 'undefined' && qgcView) {

Loading…
Cancel
Save