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

python - cx_oracle unable to find Oracle Client -

shader - OpenGL Shadow Map -

c# - Exchange 2010/2013 TransportAgent Content Conversion for Internal Recipients -