[wesnoth-commits] [wesnoth/wesnoth] 6a4783: Hotkey manager: drop duplicate commands

GitHub noreply at github.com
Wed Apr 11 18:57:25 UTC 2018


  Branch: refs/heads/hotkey-event-buffer
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 6a4783841e59f924e5f69096b73fb1a002839d9f
      https://github.com/wesnoth/wesnoth/commit/6a4783841e59f924e5f69096b73fb1a002839d9f
  Author: Jyrki Vesterinen <sandgtx at gmail.com>
  Date:   2018-04-11 (Wed, 11 Apr 2018)

  Changed paths:
    M changelog.md
    M players_changelog.md
    M src/controller_base.cpp
    M src/controller_base.hpp
    M src/hotkey/command_executor.cpp
    M src/hotkey/command_executor.hpp

  Log Message:
  -----------
  Hotkey manager: drop duplicate commands

We use both SDL_KEYDOWN and SDL_TEXTINPUT events for hotkeys. It's possible
for both events (caused by the same keypress) to trigger the hotkey command
and we don't want that. Hence, let's drop duplicate commands.

Fixes #1736.




More information about the Commits mailing list