mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Fix "Unicode parsing error" spam when opening editor.
This commit is contained in:
parent
7e4f6bdb59
commit
6759d3b812
1 changed files with 4 additions and 0 deletions
|
|
@ -387,6 +387,10 @@ String keycode_get_string(Key p_code) {
|
||||||
}
|
}
|
||||||
|
|
||||||
p_code &= KeyModifierMask::CODE_MASK;
|
p_code &= KeyModifierMask::CODE_MASK;
|
||||||
|
if ((char32_t)p_code == 0) {
|
||||||
|
// The key was just a modifier without any code.
|
||||||
|
return codestr;
|
||||||
|
}
|
||||||
|
|
||||||
const _KeyCodeText *kct = &_keycodes[0];
|
const _KeyCodeText *kct = &_keycodes[0];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue