@Override
	public void keyTyped(KeyEvent event) {
		char ch = event.getKeyChar();
		if (ch == '\n' || ch == '\r') {
			if (mModel.hasSelection()) {
				notifyActionListeners();
			}
			event.consume();
		} else if (ch == '\b' || ch == KeyEvent.VK_DELETE) {
			if (canDeleteSelection()) {
				deleteSelection();
			}
			event.consume();
		}
	}