File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 1+ import QtQml
12import QtQuick
23import QtQuick.Controls
34import QtQuick.Layouts
@@ -137,6 +138,15 @@ Control {
137138 textField .forceActiveFocus ()
138139 }
139140
141+ TapHandler {
142+ enabled: root .interactive
143+ onTapped: {
144+ textField .forceActiveFocus ()
145+ if (SQUtils .Utils .isMobile && ! Qt .inputMethod .visible )
146+ Qt .inputMethod .show ()
147+ }
148+ }
149+
140150 QtObject {
141151 id: d
142152
@@ -256,8 +266,8 @@ Control {
256266 anchors .fill : parent
257267 enabled: textField .focus
258268 cursorShape: Qt .IBeamCursor
259- onClicked: {
260- textField .cursorPosition = textField .positionAt (mouseX,mouseY )
269+ onClicked : ( mouse ) => {
270+ textField .cursorPosition = textField .positionAt (mouse . x , mouse . y )
261271 textField .forceActiveFocus ()
262272 }
263273 onWheel: {
You can’t perform that action at this time.
0 commit comments