Support => NGUI 3 Support => Topic started by: schneidb on May 29, 2014, 01:06:34 PM
Title: iOS TouchScreenKeyboard shift key stuck on when KeyboardType set to HiddenInput
Post by: schneidb on May 29, 2014, 01:06:34 PM
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?
Title: Re: iOS TouchScreenKeyboard shift key stuck on when KeyboardType set to HiddenInput
Post by: ArenMook on May 30, 2014, 02:05:01 PM
On which device? It works as expected on my android tablet.
Title: Re: iOS TouchScreenKeyboard shift key stuck on when KeyboardType set to HiddenInput
Post by: schneidb on May 31, 2014, 11:26:49 AM
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
Title: Re: iOS TouchScreenKeyboard shift key stuck on when KeyboardType set to HiddenInput
Post by: ArenMook on May 31, 2014, 01:02:42 PM
Sounds like some issue with Unity + hidden keyboard. Try opening it in a stand-alone script via TouchScreenKeyboard.Open:
Title: Re: iOS TouchScreenKeyboard shift key stuck on when KeyboardType set to HiddenInput
Post by: hrlarsen on July 29, 2014, 05:36:33 AM
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