java - Check if its a character -


after getting action keylistener, using event.getkeycode() , later on keyevent.getkeytext(keycode), how check if outcome of .getkeytext(keycode) single character 'a' , not whole word "space" ?

how this:

keyevent.getkeytext(keycode).length == 1 

Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -