Author Topic: iOS TouchScreenKeyboard shift key stuck on when KeyboardType set to HiddenInput  (Read 4706 times)

schneidb

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 2
  • Posts: 24
    • View Profile
Just noticed this in the 3.6.1 release notes and decided to check it out...
NEW: Added support for TouchScreenKeyboard.hideInput (input caret, selection, etc on mobiles)

On iOS, however, if I have InputType set to Standard; KeyboardType set to HiddenInput and Validation set to None, I get nothing but capitalized characters and the virtual shift key shows itself as pressed.

As a test, I changed Validation to Username.  That did convert all characters into their lowercase, but the shift key continued to show as on.

Is this a bug or is there a way to change this programmatically?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
On which device? It works as expected on my android tablet.

schneidb

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 2
  • Posts: 24
    • View Profile
All iOS devices that I've tested.  This includes...
iPad2 with iOS 6
iPad 2 with iOS 7
iPad Mini Retina with iOS 7
iPhone 5 with iOS 7
iPhone 4s with iOS 7

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Sounds like some issue with Unity + hidden keyboard. Try opening it in a stand-alone script via TouchScreenKeyboard.Open:
  1. using UnityEngine;
  2.  
  3. public class Test : MonoBehaviour
  4. {
  5.     void Start()
  6.     {
  7.         TouchScreenKeyboard.hideInput = true;
  8.         TouchScreenKeyboard.Open("", TouchScreenKeyboardType.Default, false, false, false, false, "Type here");
  9.     }
  10. }

hrlarsen

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 3
  • Posts: 35
    • View Profile
It is due to how NGUI captures input from the keyboard and how autocapitalization works on iOS. For a workaround, see my post here http://www.tasharen.com/forum/index.php?topic=9960.msg47765#msg47765