public boolean deletePreviousChar ()

Deletes the character that precedes the current caret position from the text if there is no selection, or deletes the selection if there is one. This function returns true if the deletion succeeded, false otherwise.

Returns:  true if the deletion succeeded, false otherwise