Sorry if this has been posted before, but I couldn’t find anything.
I want to limit text entry into a text field to just the delete key, all other key presses should be ignored. I’ve tried various strategies with “keyboard down”, “should begin editing” and “should end editing” but the logic is confounding me. I merely want to prevent the user from entering anything (from the keyboard–the app uses a popup menu to insert other text into the text field) but DELETE.
How would I build such a filter?
TIA, as always.