Skip to content

Commit 60bb11b

Browse files
committed
dont open keyboard if editable is false
1 parent 30f8ecc commit 60bb11b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Assets/Scripts/Core/Text/InputTextField.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1068,8 +1068,9 @@ void __focusIn(EventContext context)
10681068
{
10691069
if (keyboardInput)
10701070
{
1071-
Stage.inst.OpenKeyboard(_text, false, _displayAsPassword ? false : !textField.singleLine,
1072-
_displayAsPassword, false, null, keyboardType, hideInput);
1071+
if (_editable)
1072+
Stage.inst.OpenKeyboard(_text, false, _displayAsPassword ? false : !textField.singleLine,
1073+
_displayAsPassword, false, null, keyboardType, hideInput);
10731074

10741075
SetSelection(0, -1);
10751076
}

0 commit comments

Comments
 (0)