fix #4578: backspace key events aren't captured by chat entry mode