- Home /
How to Close Mobile Keyboard?
Hey! this might be a really simple question but I have a line of code that opens the native keyboard of a mobile device.
public void OpenKeyBoard(string IFValue) { if (TouchScreenKeyboard.visible == false && !IS_KeyboadOpen) { TouchScreenKeyboard.Open( IFValue, TouchScreenKeyboardType.Default, false, false, false); IS_KeyboadOpen = true; } }
But what line of code can I use to Close the keyboard? Any help appreciated!
Answer by TheDJBuntin · Jul 03, 2017 at 11:25 PM
Possibly what you are after: TouchScreenKeyboard.active.
With some googling it looks like the keyboard should close when its focus isnt on it anymore, ie if you tab away from the text input it should disappear without having to code anything.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Hover Over Input Field Before Inputting? 2 Answers
Input System binding with one modifier composite value problem 1 Answer
How to make floating mobile keyboard in mobile game ? 0 Answers