mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-30 21:27:12 +00:00
Revert part of "GUI2 Textbox: Remove the other two emacs keybindings"
This reverts part of commit 468c6e0f494793d57b0b1264894cd7f0b0383fa2. 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:
parent
5b31b87f6a
commit
24392b98ea
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user