[Commits] [wesnoth/wesnoth] 92ca7f: Fix #24681: Use composed hotkeys where appropriate...

GitHub noreply at github.com
Fri Apr 28 23:30:43 UTC 2017


  Branch: refs/heads/composed_hotkeys
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 92ca7fdb5eb11c04b191359892517ea22d9f4491
      https://github.com/wesnoth/wesnoth/commit/92ca7fdb5eb11c04b191359892517ea22d9f4491
  Author: Andreas Löf <andreas at alternating.net>
  Date:   2017-04-29 (Sat, 29 Apr 2017)

  Changed paths:
    M data/core/hotkeys.cfg
    M src/controller_base.cpp
    M src/hotkey/command_executor.cpp
    M src/hotkey/hotkey_item.cpp
    M src/hotkey/hotkey_item.hpp
    M src/wesnoth.cpp

  Log Message:
  -----------
  Fix #24681: Use composed hotkeys where appropriate and revert help to be ':'

This enables textinput events in SDL and adds handling of them. The events
are processed for hotkeys if the length of the hotkey string is 1 (which is the
case for all straightforward hotkeys).


  Commit: daef8cd22ca9ba689a0d5b6db1cbbbdb84285570
      https://github.com/wesnoth/wesnoth/commit/daef8cd22ca9ba689a0d5b6db1cbbbdb84285570
  Author: Andreas Löf <andreas at alternating.net>
  Date:   2017-04-29 (Sat, 29 Apr 2017)

  Changed paths:
    M src/hotkey/hotkey_item.cpp
    M src/hotkey/hotkey_item.hpp
    M src/key.cpp
    M src/key.hpp

  Log Message:
  -----------
  Fix 24681: Proper filtering of modifiers when handling hotkeys

This adds proper handling for composition of input and also handles
raw key up/down properly when there are modifiers applied to the
keyboard that stops composition.


  Commit: c127e6f9d3abfdbae4bea903608aea715a657c37
      https://github.com/wesnoth/wesnoth/commit/c127e6f9d3abfdbae4bea903608aea715a657c37
  Author: Andreas Löf <andreas at alternating.net>
  Date:   2017-04-29 (Sat, 29 Apr 2017)

  Changed paths:
    M src/gui/core/event/dispatcher.cpp
    M src/gui/core/event/dispatcher.hpp
    M src/gui/core/event/dispatcher_private.hpp
    M src/gui/core/event/handler.cpp
    M src/gui/core/event/handler.hpp
    M src/gui/dialogs/hotkey_bind.cpp
    M src/gui/dialogs/hotkey_bind.hpp
    M src/hotkey/hotkey_item.cpp
    M src/hotkey/hotkey_item.hpp

  Log Message:
  -----------
  Pipe raw SDL events throught the GUI2 event system for hotkeys

This adds support for passing raw SDL events throught the GUI2
event system in order to allow for hotkey creation in the GUI2 hotkey
dialog. The dialog in turn uses the raw SDL event to query the hotkey
subsystem whether it's a suitable event to create a hotkey from or not.

The first suitable event is used to create a hotkey.


Compare: https://github.com/wesnoth/wesnoth/compare/8092b38691ca...c127e6f9d3ab


More information about the Commits mailing list