Hello again Happy Dartisans!
I'm trying to register an Event for my textarea to listen to TAB key
as you can see my code below...
void tabHandler(KeyboardEvent e) {
KeyEvent textKey = new KeyEvent.wrap(e);
textKey.preventDefault();
if (textKey.keyCode == KeyCode.TAB) {
print('tabbed');
}
textKey.preventDefault();
}
but obviously it doesn't seen to work :(
whenever I press TAB the textarea loses focus
my real purpose is to enable the Tab Character in my textarea but I stuck on the EventListener part
If you guys know how to enable tab character (indentation) please let me know :)
I did a research and I guess I can add a tab character UTF code to my textarea like : textArea.value += 'utfcodeblahblah';
Please let me know if I'm on the right track :D and please share you tab character UTF code and how to escape it in a string (I'm so new to this and full of concern)
Thank you so much in advance!!!!
I love you Seth Ladd :D