diff options
author | Yuri Sizov <11782833+YuriSizov@users.noreply.github.com> | 2023-04-07 12:44:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-07 12:44:36 +0200 |
commit | 8c551374cada11b4b24045f9017d8b585d66335e (patch) | |
tree | 12d837fa63f418bf917529643da7f9f5ba587576 | |
parent | 47af40c71fbfcb66af130ea58b2b2c95ad5d48cb (diff) | |
parent | 744bf604bf48c853f927154da5f2243fa9709dd3 (diff) | |
download | redot-engine-8c551374cada11b4b24045f9017d8b585d66335e.tar.gz |
Merge pull request #75738 from bruvzg/web_phzkezs
[Web] Fix keycode/physical keycode mixed up.
-rw-r--r-- | platform/web/dom_keys.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/web/dom_keys.inc b/platform/web/dom_keys.inc index ae3b2fc1a5..cd94b779c0 100644 --- a/platform/web/dom_keys.inc +++ b/platform/web/dom_keys.inc @@ -33,7 +33,7 @@ // See https://w3c.github.io/uievents-code/#code-value-tables Key dom_code2godot_scancode(EM_UTF8 const p_code[32], EM_UTF8 const p_key[32], bool p_physical) { #define DOM2GODOT(p_str, p_godot_code) \ - if (memcmp((const void *)p_str, (void *)(p_physical ? p_key : p_code), strlen(p_str) + 1) == 0) { \ + if (memcmp((const void *)p_str, (void *)(p_physical ? p_code : p_key), strlen(p_str) + 1) == 0) { \ return Key::p_godot_code; \ } |