I'm trying to write a text editor.
I'd need to:
- be able to understand what text is selected so that a shortcut could work in the correct portion of text, just like in this editor, if I select a word in the middle of the text and then press Ctrl+B
- Be able to catch when some keys are pressed like this Ctrl+B and TAB
any hint?