[wesnoth-commits] [wesnoth/wesnoth] 75b509: Fix #2657: inability to scroll diagonally with key...

GitHub noreply at github.com
Thu Mar 15 17:33:49 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 75b50979b64cbcdb56cd09e560bff376ad63bcc6
      https://github.com/wesnoth/wesnoth/commit/75b50979b64cbcdb56cd09e560bff376ad63bcc6
  Author: Jyrki Vesterinen <sandgtx at gmail.com>
  Date:   2018-03-15 (Thu, 15 Mar 2018)

  Changed paths:
    M src/editor/controller/editor_controller.cpp
    M src/editor/controller/editor_controller.hpp
    M src/hotkey/command_executor.cpp
    M src/hotkey/command_executor.hpp
    M src/hotkey/hotkey_handler.cpp
    M src/hotkey/hotkey_handler.hpp

  Log Message:
  -----------
  Fix #2657: inability to scroll diagonally with keyboard

Regression from commit ecc0dca665737bcb411fbd355edd37df8a9038b8.

Scrolling diagonally requires holding two keys. Now when a key press event
is considered a key press only if there hasn't been a key release in
between, the second key press is no longer considered a key press.

As a workaround, simply activate scrolling on key event even if the event
isn't considered a key press.




More information about the Commits mailing list