Browse Source

Platform: fix EmscriptenApplication key events.

Got broken in 0f026cd314. Note to self:
don't delegate testing to third parties.
pull/481/head
Vladimír Vondruš 6 years ago
parent
commit
08ecbbc380
  1. 2
      src/Magnum/Platform/EmscriptenApplication.cpp

2
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

Loading…
Cancel
Save