key - Input.GetKeyUp works wrong after Inputfield user input in Unity3D -


the problem explained in title. after inputfield user input, other character(such keycode.a, keycode.b, ... keycode.z) input seems not working getkeydown(), getkeyup(), getkey(), while special keys works such keycode.leftarrow, keycode.delete, etc.

void update(){     // search shortcut enter key          if (input.getkeydown(keycode.return))     {         if (searchfield.text.trim() != "")         {             //         }         searchfield.deactivateinputfield();     } } 

after search, found deactivateinputfield() function , executed in end of if statement prevent it. seems helpful not. mean, after insert searchfield.deactivateinputfield(); problem doesn't occur, occurs. lost..

i guessing inputfield event system eating keys character keys.. can't use input.eatkeypressontextfieldfocus because i'm using unity5 , deprecated.

any help?


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -