gui1: Restore focus to the original textbox...
...after resending relevant events to its input target This effectively fixes bug #5877, *again*. 2012-12-23T06:10:46Z!shadowm@wesnoth.org introduced quite a regression in the form of switching the focus permanently as soon as the user presses the modifier key in Shift+<arrow> and Shift+C, requiring improbable typing skills to get e.g. a Shift+C event _before_ a solitary left or right Shift event.
This commit is contained in:
parent
65067325c0
commit
17a029275e
1 changed files with 3 additions and 0 deletions
|
@ -607,8 +607,11 @@ void textbox::pass_event_to_target(const SDL_Event& event)
|
|||
if(edit_target_ && edit_target_->editable()) {
|
||||
set_focus(false);
|
||||
edit_target_->set_focus(true);
|
||||
|
||||
edit_target_->handle_event(event);
|
||||
|
||||
edit_target_->set_focus(false);
|
||||
set_focus(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue