How can I disable a tab key on a form so that it goes to the next button when press.
This is a hardware Tab key on a qwerty hardware keyboard.
How can I disable a tab key on a form so that it goes to the next button when press.
This is a hardware Tab key on a qwerty hardware keyboard.
Copyright © 2021 Jogjafile Inc.
You should implement the
protected boolean onKeyDown(int keyCode, KeyEvent event) {}
, check for thekeyCode
and if the key is tab, then consume the event.Hope this helps!