diff options
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp index 0b913c601..c4787d9a3 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -3170,6 +3170,15 @@ void Client::setIcon() #endif } +bool Client::isKeyboardVisible() const +{ +#ifdef USE_SDL2 + return SDL_IsTextInputActive(); +#else + return mKeyboardHeight > 1; +#endif +} + #ifdef USE_SDL2 void Client::handleSDL2WindowEvent(const SDL_Event &event) { |