summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNikolas Nyby <nikolas@gnu.org>2019-11-01 10:38:43 -0400
committerNiels Martin Hansen <nielsm@indvikleren.dk>2019-11-01 23:41:47 +0100
commit4884dcacbae72b265e7bfab180b923a48d65913b (patch)
tree64fd3cb44794677ce5c3eafc91b8808cc7faa2bf /src
parentd5a9bd404a3ca90a18abeeaaaabdbf5185437ba7 (diff)
downloadopenttd-4884dcacbae72b265e7bfab180b923a48d65913b.tar.xz
Fix #7784: up/down/home/end key behavior in SDL2
Closes #7784.
Diffstat (limited to 'src')
-rw-r--r--src/video/sdl2_v.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video/sdl2_v.cpp b/src/video/sdl2_v.cpp
index 03d05e210..4515dd3c5 100644
--- a/src/video/sdl2_v.cpp
+++ b/src/video/sdl2_v.cpp
@@ -558,6 +558,10 @@ int VideoDriver_SDL::PollEvent()
keycode == WKC_NUM_ENTER ||
keycode == WKC_LEFT ||
keycode == WKC_RIGHT ||
+ keycode == WKC_UP ||
+ keycode == WKC_DOWN ||
+ keycode == WKC_HOME ||
+ keycode == WKC_END ||
keycode & WKC_META ||
keycode & WKC_SHIFT ||
keycode & WKC_CTRL ||