gui::TextField erase with backspace, or highlighting the text and delete

Hi,

Quick question: Is there a backspace feature for gui::TextField? Where the last character typed in will be erased when pressing the backspace.

Also, is highlighting the text and deleting it by pressing delete or backspace possible?

I’ve tried looking for possible functions and had no luck. I could achieve the backspace functionality by using the keyboard event listener and listen for backspace to amend the text of the text field.

I hope there’s a better solution for this. Thanks in advance! :slight_smile:

P.S. is it also possible to show a caret in the text field?