Revert "Fix #1736: on GNU/Linux, a hotkey can trigger multiple commands"
This reverts commit f80bc42621
.
As @CelticMinstrel pointed out, that commit made it impossible to input characters which require
AltGr to type (e.g. @, € and $ in Finnish keyboard).
Reopens #1736.
This commit is contained in:
parent
b72d6ae37d
commit
0fdb4614e0
1 changed files with 0 additions and 9 deletions
|
@ -487,15 +487,6 @@ void pump()
|
|||
events.erase(first_draw_event + 1, events.end());
|
||||
}
|
||||
|
||||
if(SDL_GetModState() & KMOD_ALT) {
|
||||
// Remove text input events, to match the behavior on Windows
|
||||
// See https://github.com/wesnoth/wesnoth/issues/1736
|
||||
events.erase(
|
||||
std::remove_if(events.begin(), events.end(), [](const SDL_Event& e) { return e.type == SDL_TEXTINPUT; }),
|
||||
events.end()
|
||||
);
|
||||
}
|
||||
|
||||
ev_end = events.end();
|
||||
|
||||
for(ev_it = events.begin(); ev_it != ev_end; ++ev_it) {
|
||||
|
|
Loading…
Add table
Reference in a new issue