Search Unity

OnScreenKeyboard outside clicking issues

Discussion in 'iOS and tvOS' started by noamgat, Jan 2, 2016.

  1. noamgat

    noamgat

    Joined:
    Nov 22, 2009
    Posts:
    125
    Hi,

    We are building an app for iOS and have text input. However, we have been unable to distinguish between the following two cases :

    1) User opens on screen keyboard, types text and clicks "done"
    2) User opens on screen keyboard, types text and clicks outside the keyboard area.

    In a chat app context, this is critical (in case 2, the user likely wanted to cancel)

    In both cases the events that unity fires and the properties of the TouchScreenKeyboard class are 100% the same (OnScreenKeyboard : done = true, canceled = false) so we can't tell the two cases apart.

    Unity even doesn't receive the actual touch that was touched outside of the keyboard area, so I can't check if the touch occured and behave differently.

    Is there a way to differentiate between the two very different clicks?