Merge pull request #104107 from Ivorforce/keycode-get-key-keycode-error

Fix "Unicode parsing error" spam when opening editor.
This commit is contained in:
Rémi Verschelde 2025-03-14 11:02:23 +01:00
commit ddbeb57073
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -387,6 +387,10 @@ String keycode_get_string(Key p_code) {
}
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];