diff options
author | Jonathan G Rennison <j.g.rennison@gmail.com> | 2019-11-04 19:38:10 +0000 |
---|---|---|
committer | Charles Pigott <charlespigott@googlemail.com> | 2019-11-10 17:58:42 +0000 |
commit | d41378c00a60f358cdd6768210a5f929b809ad7e (patch) | |
tree | 01edd461332e93984f96a007699d77bfd6982318 /src/video | |
parent | 3db399d7d9a0545d97669efb8fe1086e2cb83477 (diff) | |
download | openttd-d41378c00a60f358cdd6768210a5f929b809ad7e.tar.xz |
Fix: [SDL2] Page down key not handled
SDLK_PAGEUP and SDLK_PAGEDOWN are not sequential
They must have separate entries in _vk_mapping
Diffstat (limited to 'src/video')
-rw-r--r-- | src/video/sdl2_v.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video/sdl2_v.cpp b/src/video/sdl2_v.cpp index d85c765f9..ab498efe7 100644 --- a/src/video/sdl2_v.cpp +++ b/src/video/sdl2_v.cpp @@ -365,7 +365,8 @@ struct VkMapping { static const VkMapping _vk_mapping[] = { /* Pageup stuff + up/down */ - AM(SDLK_PAGEUP, SDLK_PAGEDOWN, WKC_PAGEUP, WKC_PAGEDOWN), + AS(SDLK_PAGEUP, WKC_PAGEUP), + AS(SDLK_PAGEDOWN, WKC_PAGEDOWN), AS(SDLK_UP, WKC_UP), AS(SDLK_DOWN, WKC_DOWN), AS(SDLK_LEFT, WKC_LEFT), |