Welcome,
Guest
. Please
login
or
register
.
May 03, 2026, 07:27:53 AM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
UIInput Submit Button Deletes Last Character
« previous
next »
Print
Pages: [
1
]
Author
Topic: UIInput Submit Button Deletes Last Character (Read 9483 times)
poolts
Newbie
Thank You
-Given: 6
-Receive: 0
Posts: 33
UIInput Submit Button Deletes Last Character
«
on:
June 19, 2015, 06:40:02 AM »
Weirdly after updating to the latest NGUI version (3.9.0b) after typing a string on the keyboard and hitting the "Done / Submit" button it deletes the final character in the string.
I have no validation on the UIInput. On Return Key = Submit. I've added the screenshot to show the settings on the component.
Unity Version: 4.6.6
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: UIInput Submit Button Deletes Last Character
«
Reply #1 on:
June 21, 2015, 08:00:50 PM »
I see no reason why this would happen from NGUI's side. Can you narrow it down? Does switching to a bitmap font help? If you make an input field from scratch, does it work?
Logged
armanigt
Newbie
Thank You
-Given: 0
-Receive: 0
Posts: 2
Re: UIInput Submit Button Deletes Last Character
«
Reply #2 on:
July 06, 2015, 10:13:52 PM »
I'm having the exact same issue. It's definitely only popped up the moment I upgraded to NGUI 3.9.
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: UIInput Submit Button Deletes Last Character
«
Reply #3 on:
July 08, 2015, 06:32:26 PM »
How would I go about reproducing it on my end? I just tried the Chat Window example that comes with NGUI, typed something, hit Return, everything works as expected.
Logged
betodeoliveira
Newbie
Thank You
-Given: 1
-Receive: 0
Posts: 5
Re: UIInput Submit Button Deletes Last Character
«
Reply #4 on:
August 11, 2015, 02:37:06 AM »
I'm having the same problem. I'm running my project on iPhone 6 and if I have hide input enabled overtime that i hit the submit button the last char is deleted...
Logged
poolts
Newbie
Thank You
-Given: 6
-Receive: 0
Posts: 33
Re: UIInput Submit Button Deletes Last Character
«
Reply #5 on:
August 12, 2015, 04:53:20 AM »
After updating to v3.9.1 (release version) I'm still getting the same behaviour. If I revert UIInput.cs back to v3.9.0 it seems to be fixed.
It looks likely that it may only be bugged on iOS / mobile (as I can't repo it in the editor).
I've found a workaround / fix (but obviously Aren would need to verify it).
I've changed line 672 in UIInput.cs (see below) to only do a backspace if the keyboard is not finished (i.e. not submitted or minimised)
else
if
(
!
mKeyboard
.
done
&&
mKeyboard
.
active
)
DoBackspace
(
)
;
«
Last Edit: August 12, 2015, 12:19:33 PM by poolts
»
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: UIInput Submit Button Deletes Last Character
«
Reply #6 on:
August 14, 2015, 09:16:42 AM »
For me that's line 697, and that section is:
else
if
(
!
mKeyboard
.
done
&&
mKeyboard
.
active
)
{
DoBackspace
(
)
;
mKeyboard
.
text
=
"|"
;
}
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
UIInput Submit Button Deletes Last Character