Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: IZLogic on January 31, 2013, 10:32:55 AM

Title: How to leave keyboard always opened with UIInput?
Post by: IZLogic on January 31, 2013, 10:32:55 AM
Hello,
My question is in the title, for my new words game I need the keyboard will be always opened and active during the game also when the user press the Done/Enter button or touch elsewhere on the screen.
I need it because the user will write more than 1 word and I don't want the keyboard desappear and re-open all the time, but I still need to catch the word submission by return or done.

So I had a look at UIInput class and around lines 200 I found where the keyboard is opened, but I cannot understand how to stop hiding.
Could anyone please help me on this?
Thanks,
IZLogic
Title: Re: How to leave keyboard always opened with UIInput?
Post by: ArenMook on February 01, 2013, 01:02:20 AM
Keyboard will always hide on submit. You can give focus to another input field right after to make it pop back up, however.

Anything else -- and you will need to modify UIInput to suit your needs.
Title: Re: How to leave keyboard always opened with UIInput?
Post by: hexaust on August 28, 2014, 01:55:47 AM
There should be an option in UIInput to decide this behaviour. For example in a chat or IM like application the keyboard should remain on screen after submit.
Title: Re: How to leave keyboard always opened with UIInput?
Post by: hexaust on August 28, 2014, 03:42:30 AM
Anyone managed to stop hiding the keyboard on submit? Can you explain how you did that?
Title: Re: How to leave keyboard always opened with UIInput?
Post by: ArenMook on August 28, 2014, 09:11:31 PM
When you submit, the keyboard gets closed -- just how Unity works here. You can re-open it later. In your OnSubmit notification, set isSelected to false then back to true.
Title: Re: How to leave keyboard always opened with UIInput?
Post by: alschwank on June 15, 2016, 04:41:37 PM
Hi,

I have the same issue as hexaust. Is there now a way to keep the keyboard permanently open?

Thanks,
Alex
Title: Re: How to leave keyboard always opened with UIInput?
Post by: ArenMook on June 16, 2016, 04:01:51 AM
Hi,

I have the same issue as hexaust. Is there now a way to keep the keyboard permanently open?

Thanks,
Alex
That's a question for Unity.