cancel
Showing results for 
Search instead for 
Did you mean: 

Layout keyboard keep popping up after trying to hide it

amtsamy
Honored Guest

I get this behaviour when i try to implement the overlay keyboard iniside oculus quest, any help will be appreciated.

2 REPLIES 2

Anonymous
Not applicable

I think the keyboard shows up whenever an input field has focus, so when you close the keyboard and the input field still has focus it gets re-summoned. You might need something like this:

 

    private void OnEnable() {
        OVRManager.InputFocusAcquired += DeactivateInputField;
    }

    private void OnDisable() {
        OVRManager.InputFocusAcquired -= DeactivateInputField;
    }

    private void DeactivateInputField() {
        if (inputField.isFocused) {
            inputField.DeactivateInputField();
        }
    }

So in this video the keyboard is opened programmatically using TouchScreenKeyboard.Open(), when i tired to open it by clicking on an input field it works properly, also on what should i put this script??