Search Unity

IME keyboard doesn't seem to be detected on mac

Discussion in 'Input System' started by bbudian_virbela, Oct 14, 2021.

  1. bbudian_virbela

    bbudian_virbela

    Joined:
    Feb 23, 2021
    Posts:
    2
    Hi,

    I have a project that supports multiple languages. We currently have an issue where users using an Asian keyboard have some wonky behavior when using Inputfields.

    On windows when an IME correction popup opens the user can choose a correction then hit enter. This will change the text component of the InputField WITHOUT triggering any of the events (namely OnSubmit).
    On mac however when the user chooses a correction and hits enter it submits the current text before replacing the text. This obviously isn't what we want to happen...

    It turns out after trying this on windows as well that the Input.ImeIsSelected will toggle when you switch to another keyboard.

    However on mac it seems that unity isn't properly tracking IME keyboards and does not change that variable when enabling other language keyboards. It seems then that there is some issue internal to unity that is causing this behavior to not function properly.

    I'm looking for both clarification on that and to see if there is a workaround for this issue that unity might have available.

    THANKS!
     
  2. bbudian_virbela

    bbudian_virbela

    Joined:
    Feb 23, 2021
    Posts:
    2
    Bumping this post in case a unity rep or someone who may know this sees