From 08ecbbc380a7dee0fc31f5e3eeaf9a18798cfbcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 6 Nov 2020 11:55:39 +0100 Subject: [PATCH] Platform: fix EmscriptenApplication key events. Got broken in 0f026cd3144870e9b05bbfcae2ba0d0697dab670. Note to self: don't delegate testing to third parties. --- src/Magnum/Platform/EmscriptenApplication.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Magnum/Platform/EmscriptenApplication.cpp b/src/Magnum/Platform/EmscriptenApplication.cpp index 7c10be8bf..a705c6df3 100644 --- a/src/Magnum/Platform/EmscriptenApplication.cpp +++ b/src/Magnum/Platform/EmscriptenApplication.cpp @@ -117,7 +117,7 @@ namespace { or 'Minus'. Note that the Y key on some layouts may result in 'KeyZ'. */ Key toKey(const EM_UTF8* const key, const EM_UTF8* const code) { const Containers::StringView keyView = key; - if(keyView.isEmpty() == 0) return Key::Unknown; + if(keyView.isEmpty()) return Key::Unknown; /* We use key for a-z as it gives us a keyboard layout respecting representation of the key, i.e. we get `z` for z depending on layout