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

Bringing up the on screen keyboard when InputField gains focus

Discussion in 'Windows' started by jeffreyf, Apr 11, 2017.

  1. jeffreyf

    jeffreyf

    Joined:
    Sep 22, 2012
    Posts:
    15
    Hello,

    Working on a Surface Pro 2, if the user is in fullscreen and clicks an InputField UI component, nothing will happen. Since they're in full screen, they can't easily bring up their keyboard. Is there a way on Windows to have the on screen keyboard (or some other software keyboard) pop up whenever the user clicks or focuses on an InputField? I understand this is default behaviour on iOS and Android, but it is a pretty huge roadblock for us on Windows tablets like the Surface Pro 2.

    Thnanks
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,645
    It should happen automatically if the laptop isn't docked (the keyboard is not connected). Is that not the case?
     
  3. jeffreyf

    jeffreyf

    Joined:
    Sep 22, 2012
    Posts:
    15
    I tried disconnecting my keyboard (and mouse) and it didn't work on a build on the Surface Pro 2. As well we tried it on a Samsung tablet and it didn't work either. Both are running Windows 10 Pro.
     
  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,645
    Hmm. I forgot to ask you one important detail: are you targeting Windows Store or Windows Standalone? It should definitely work on the former (we explicitly implemented support for it). I don't think it works on the latter.
     
  5. jeffreyf

    jeffreyf

    Joined:
    Sep 22, 2012
    Posts:
    15
    Ah that may be the problem. We are targeting Windows Standalone.

    I'll have to look into whether targeting Windows Store is a possibility for us (I'm unsure the consequences, like if we're able to re-distribute it as easily as the Standalone build).
     
  6. ScrappyOrc

    ScrappyOrc

    Joined:
    Nov 25, 2013
    Posts:
    14
    Is there any way to do this on Standalone platforms? We can't target Windows Store, and have a use case where users on Windows tablets might not have a keyboard connected.
     
  7. developersice

    developersice

    Joined:
    Nov 25, 2016
    Posts:
    36
    We are also interested in implementing this feature for standalone builds
     
  8. NIMBLE_JIM

    NIMBLE_JIM

    Joined:
    Apr 28, 2015
    Posts:
    10
    We would also like to have this feature working for standalone builds - can this be implemented?
     
  9. Arsinx

    Arsinx

    Joined:
    Apr 14, 2014
    Posts:
    55
    We are facing the same issue currently.
     
  10. CptDustmite

    CptDustmite

    Joined:
    Jun 17, 2014
    Posts:
    61
    @Tautvydas-Zilys this is also a feature we would like (standalone keyboard). Is there any update on this?
     
  11. CanisLupus

    CanisLupus

    Joined:
    Jul 29, 2013
    Posts:
    427
    We would also like to be able to call the virtual keyboard on standalone builds. Hybrid laptops with detachable keyboards come to mind. The virtual keyboard does not show automatically even when in Windows 10 tablet mode. :)
     
  12. NIMBLE_JIM

    NIMBLE_JIM

    Joined:
    Apr 28, 2015
    Posts:
    10
  13. levwsr

    levwsr

    Joined:
    Jul 23, 2012
    Posts:
    68
    Unity - Please add this feature.. getting a bit silly that you have not?
     
    Huacanacha likes this.
  14. SirCodeWarrior

    SirCodeWarrior

    Joined:
    Sep 18, 2019
    Posts:
    16
    Unity - Add another vote - we have a use case too for standalone build and would like the virtual keyboard auto-magically appear with input field is in focus.
     
    Huacanacha likes this.
  15. Akkadokk

    Akkadokk

    Joined:
    Mar 7, 2017
    Posts:
    4
    +1. I need keyboard auto-appear when input field focus.
     
  16. mjm1995

    mjm1995

    Joined:
    May 25, 2018
    Posts:
    2
    2021 and still no update !
    so weird
     
  17. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,645
    Windows has no API to bring up an on screen keyboard programmatically for Win32 applications. So there's no real way for us to implement this.
     
    KeigoTakamura likes this.