From 481ea0b776bbab92b500540f59c5a191c6e93cba Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 9 Sep 2017 22:54:01 +0300 Subject: Add workaround for fix alt-tab issue in SDL2. Also add option to enable/disable this workaround. --- src/input/keyboardconfig.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/input/keyboardconfig.h') diff --git a/src/input/keyboardconfig.h b/src/input/keyboardconfig.h index 1759e4bb9..ef3f056b7 100644 --- a/src/input/keyboardconfig.h +++ b/src/input/keyboardconfig.h @@ -129,6 +129,10 @@ class KeyboardConfig final void resetRepeat(const int key); +#ifdef USE_SDL2 + bool ignoreKey(const SDL_Event &restrict event) A_WARN_UNUSED; +#endif // USE_SDL2 + private: bool mEnabled; /**< Flag to respond to key input */ @@ -143,6 +147,8 @@ class KeyboardConfig final KeyToIdMap mKeyToId; KeyTimeMap mKeyTimeMap; + + bool mBlockAltTab; }; extern KeyboardConfig keyboard; -- cgit v1.2.3-70-g09d2