Revert part of "GUI2 Textbox: Remove the other two emacs keybindings"

This reverts part of commit 468c6e0f49.

Ctrl+A was removed because its emacs meaning is surprising to some
people.  Ctrl+E was removed because it was the counterpart of Ctrl+A.
Ctrl+U however doesn't conflict with anything else, and it's useful
to some people (me), so reinstate it.
This commit is contained in:
josteph 2018-01-19 22:21:19 +00:00 committed by Charles Dang
parent 5b31b87f6a
commit 24392b98ea

View file

@ -539,6 +539,13 @@ void text_box_base::signal_handler_sdl_key_down(const event::ui_event event,
handle_key_backspace(modifier, handled);
break;
case SDLK_u:
if(!(modifier & KMOD_CTRL)) {
return;
}
handle_key_clear_line(modifier, handled);
break;
case SDLK_DELETE:
handle_key_delete(modifier, handled);
break;