Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Android keyboard blocks touches

Discussion in 'Android' started by michaeleconomy, Jun 16, 2020.

  1. michaeleconomy

    michaeleconomy

    Joined:
    Aug 28, 2018
    Posts:
    58
    When they keyboard is displayed it blocks all of the clicks/touches in the non keyboard area (they dismiss the keyboard, but you can't tell what was clicked on).

    Is there a way to enable interaction with non keyboard stuff while the android keyboard is visible?


    The only workaround i can think of is implementing my own on screen keyboard, which would be pretty gross.
     
    Last edited: Jun 16, 2020
    Ardito92ITA likes this.
  2. JuliusM

    JuliusM

    Unity Technologies

    Joined:
    Apr 17, 2013
    Posts:
    835
    Unfortunately this is not possible. When the on-screen keyboard is displayed - it has focus and all touch events are sent to it. When you touch outside of the keyboard - Unity activity gets an onFocus event, but no touch events, so we can't determine where the touch happened.
     
  3. michaeleconomy

    michaeleconomy

    Joined:
    Aug 28, 2018
    Posts:
    58
    Is there a plan to address this? Google maps, hangouts, and many of other first party apps allow this, it's frustating to android users to have to click an additional time to do non-keyboard stuff if the keyboard is up.
     
    jiraphatK likes this.
  4. jiraphatK

    jiraphatK

    Joined:
    Sep 29, 2018
    Posts:
    293
    At least any hacky way? The UX for double-tap just to click on a button when you're done with the touch keyboard is simply horrible! There are a lot of common use case for this:
    -Search bar that lets you search for stuff and click on the search result.
    -A signup panel that has multiple Input field. just imagine the nightmare!
     
  5. michaeleconomy

    michaeleconomy

    Joined:
    Aug 28, 2018
    Posts:
    58
    Implementing your own keyboard would probably work...

    that’s a step i’m not prepared to take though.

    if you knew android well perhaps you could build a Native module?