Author Topic: Tab key deselects UIInput  (Read 5896 times)

Zylann

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 17
    • View Profile
Tab key deselects UIInput
« on: August 11, 2016, 09:39:38 AM »
I am in a special case where I want to use the Tab key to perform an action while an UIInput field is selected, and be able to continue typing afterwards.

However, I see that releasing Tab in any UIInput deselects it (UIInput.OnKey(), else if KeyCode.Tab selects the thing to false).

Is there a way to prevent this behaviour?
« Last Edit: August 11, 2016, 09:52:54 AM by Zylann »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Tab key deselects UIInput
« Reply #1 on: August 13, 2016, 04:00:10 PM »
Yes, same way as here: http://www.tasharen.com/forum/index.php?topic=14797.0

Untested though. If that doesn't work, simply make OnKey virtual and change it in your derived class.