Skip to content

Commit f56fa76

Browse files
keveleighStephenHodgson
authored andcommitted
[May18] Disable keyboard for the MRTK keyboard's inputfield (#2169)
* Disable keyboard for the MRTK keyboard's inputfield * Adding comment to Keyboard disabling
1 parent 8058e72 commit f56fa76

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Assets/HoloToolkit/UX/Scripts/Keyboard.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,10 @@ protected override void Awake()
251251
}
252252
}
253253

254+
// Setting the keyboardType to an undefined TouchScreenKeyboardType,
255+
// which prevents the MRTK keyboard from triggering the system keyboard itself.
256+
InputField.keyboardType = (TouchScreenKeyboardType)(-1);
257+
254258
// Keep keyboard deactivated until needed
255259
gameObject.SetActive(false);
256260
}

0 commit comments

Comments
 (0)