I have implemented a custom keyboard associated with a text field, so when the user presses the delete button, I remove the last character from the string, and manually upda
If you can't get this to work by default, then use an if/else block and test if the last character is part of a special character. If it is, use the substring to length-2, otherwise use the substring to length-1.