Yes, Jules. That’s why I’m so confused.
We can input any characters, but seems lot of them never ‘through out’ keyPressed(). it means: if I want capture some input, I can’t implement the goal.
DId you try it in Demo?
Let me say a little more. Currently, I’m using the TextEditor::keypressed() to implement this function:
just like any IDE’s auto-complete, Intelligence tips, etc… when user input some certain characters, it’ll show a popup menu, the menu items are the tips (auto-complete content). What I did this is capture every key event by keyPressed(), then do some judge… it’s a little bit complex beyond my English level…
In addition of this, I also use keyPressed() to impelment ‘punctuation auto-match’. eg. when user input ‘[’, the ‘]’ will appear immediately, if something has been selected, the matches punctuation will auto wrap it.
and other funcy functions, shortcuts, etc… I made the TextEditor very powerful you couldn’t imagine:) All these things severe dependenced on TextEditor::keyPressed().
All of these work perfectly on Windows… but, on mac, nothing and nothing, because that method never had been called except a few key, eg.‘return’, ‘delete’, ‘tab’…