Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
amtsamy's avatar
amtsamy
Explorer
4 years ago

Layout keyboard keep popping up after trying to hide it

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

2 Replies

Replies have been turned off for this discussion
  • Anonymous's avatar
    Anonymous

    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();
            }
        }
    • amtsamy's avatar
      amtsamy
      Explorer

      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??