Author Topic: NGUI 2.7.0 Android backspace not working?  (Read 8588 times)

Tripwire

  • Full Member
  • ***
  • Thank You
  • -Given: 9
  • -Receive: 0
  • Posts: 163
    • View Profile
NGUI 2.7.0 Android backspace not working?
« on: October 28, 2013, 09:36:47 AM »
Hi,

I'm working on an app for Android, and I noticed that in my InputFields the backspace on my device is not working. I'm using the following devices:

Google Nexus 7 HD 2013
Samsung Galaxy Tab 8.9

Thx!

EDIT:
I checked it out with a freshly imported NGUI package in an empty scene and use the Input.unity scene. And the backspace button isn't working anymore when using:
  1. TouchScreenKeyboard.hideInput = true;
« Last Edit: October 28, 2013, 04:51:31 PM by Tripwire »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI 2.7.0 Android backspace not working?
« Reply #1 on: October 29, 2013, 01:19:14 AM »
Not working how? Backspace is handled not by NGUI but by your device. Your device simply feeds the final string to NGUI. It has always been like that.

Tripwire

  • Full Member
  • ***
  • Thank You
  • -Given: 9
  • -Receive: 0
  • Posts: 163
    • View Profile
Re: NGUI 2.7.0 Android backspace not working?
« Reply #2 on: October 29, 2013, 08:06:19 AM »
Not working how? Backspace is handled not by NGUI but by your device. Your device simply feeds the final string to NGUI. It has always been like that.

Hi ArenMook,

I'll explain:
When press on the input field the keyboard pops up and I can type a message no problem. When i'm not using
  1. TouchScreenKeyboard.hideInput = true;
and I press backspace on the Android Keyboard it works perfectly. But when I do have
  1. TouchScreenKeyboard.hideInput = true;
set the backspace button on the Android Keyboard isn't backspacing in the input field in Unity3D.

EDIT:
I'm using NGUI 2.7.0 and Unity3D version 4.2.2f1 on OSX.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI 2.7.0 Android backspace not working?
« Reply #3 on: October 29, 2013, 04:21:48 PM »
TouchScreenkeyboard.hideInput is not used anywhere in NGUI -- at least in 3.0.

Tripwire

  • Full Member
  • ***
  • Thank You
  • -Given: 9
  • -Receive: 0
  • Posts: 163
    • View Profile
Re: NGUI 2.7.0 Android backspace not working?
« Reply #4 on: October 29, 2013, 04:34:51 PM »
TouchScreenkeyboard.hideInput is not used anywhere in NGUI -- at least in 3.0.

Well i'm still using NGUI 2.7.0 due to some plugins which are not working with NGUI 3.0 so NGUI 3.0 is a problem for me to use. I do however would like to know if this bug can be fixed?
« Last Edit: October 29, 2013, 04:46:38 PM by Tripwire »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI 2.7.0 Android backspace not working?
« Reply #5 on: October 29, 2013, 04:48:37 PM »
Well yes... by not using TouchScreenkeyboard.hideInput as you've mentioned :P

Tripwire

  • Full Member
  • ***
  • Thank You
  • -Given: 9
  • -Receive: 0
  • Posts: 163
    • View Profile
Re: NGUI 2.7.0 Android backspace not working?
« Reply #6 on: October 29, 2013, 06:04:55 PM »
Well yes... by not using TouchScreenkeyboard.hideInput as you've mentioned :P

:P is there a way of not using TouchScreenKeyboard.hideInput and still getting the backspace working? I don't think my boss likes the input bar on top of the Android Keyboard.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI 2.7.0 Android backspace not working?
« Reply #7 on: October 30, 2013, 05:28:46 AM »
He doesn't like seeing what he's typing? That doesn't strike you as strange at all?

All I can suggest is investigate it. Check what Unity feeds NGUI via the keyboard class as that's what NGUI ultimately depends on.

Tripwire

  • Full Member
  • ***
  • Thank You
  • -Given: 9
  • -Receive: 0
  • Posts: 163
    • View Profile
Re: NGUI 2.7.0 Android backspace not working?
« Reply #8 on: October 30, 2013, 06:04:57 AM »
He doesn't like seeing what he's typing? That doesn't strike you as strange at all?

All I can suggest is investigate it. Check what Unity feeds NGUI via the keyboard class as that's what NGUI ultimately depends on.

Well i haven't seen any apps which use the textinput at the top of the Android Keyboard. I'll check it out though...