Author Topic: Tabbing between UIInput fields... issues and ideas  (Read 2664 times)

DulcetTone

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Tabbing between UIInput fields... issues and ideas
« on: August 25, 2014, 08:33:47 AM »
I like the Tab-between-UIInput controls feature, but have an issue in the Web Player and several feature requests.

Issue:  Tab is working fine when running in the Editor's Player, but not in a Web Player.  What could do this?

Feature request:  Shift+Tab should jump to the previous control in the chain.  I guess it is clear that there could be more than one such, but in those cases the one generally to the left/above the current one would be a good choice, if not the most recently active candidate

Feature request:  other controls need to be hooked into this system, e.g.:  a UIPopupList should be something you can traverse by Tab/Shift-Tab

tone

Yukichu

  • Full Member
  • ***
  • Thank You
  • -Given: 3
  • -Receive: 8
  • Posts: 101
    • View Profile
Re: Tabbing between UIInput fields... issues and ideas
« Reply #1 on: August 25, 2014, 12:54:50 PM »
Been meaning to write a similar post.

It'd be nice to have.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Tabbing between UIInput fields... issues and ideas
« Reply #2 on: August 26, 2014, 02:38:01 AM »
Good idea. I'll add shift-tab in the next update.

I've also noticed that it was using Input.GetKey instead of events, which is possibly why it didn't work in the web player. I've changed it to use events properly.


I'm not sure I understand your last one though... it already works like that. I just tried an input field and set it to select a popup list on focus, and it does select it. The popup list just doesn't open its selection drop-down when it gains selection. Hit Enter and it will.

P.S. UIKeyNavigation can be attached to the same popup list to make it respond to Tab events. Tab acts like a Down event and Shift-Tab acts like an Up event.

P.P.S. Come to think of it, UIKeyNavigtion works on input fields too, so the whole "select on tab" option is not necessary at all.
« Last Edit: August 26, 2014, 02:57:16 AM by ArenMook »

DulcetTone

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Re: Tabbing between UIInput fields... issues and ideas
« Reply #3 on: August 30, 2014, 01:38:47 PM »

I'm not sure I understand your last one though... it already works like that. I just tried an input field and set it to select a popup list on focus, and it does select it. The popup list just doesn't open its selection drop-down when it gains selection. Hit Enter and it will.

But there is no way to designate the control that is to receive focus when you tab away from the UIPopup List, is there?  So, the chain is dead-ends on any non-UIInput controls unless I'm mistaken.

tone

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Tabbing between UIInput fields... issues and ideas
« Reply #4 on: August 31, 2014, 02:49:06 PM »
UIKeyNavigation's Down = Tab. Up = Shift-Tab. If down isn't set, it uses Right, etc.