Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Web] Editor throws continuously when calling internally GodotIME.ime.focus() #98928

Closed
adamscott opened this issue Nov 7, 2024 · 0 comments · Fixed by #98931
Closed

[Web] Editor throws continuously when calling internally GodotIME.ime.focus() #98928

adamscott opened this issue Nov 7, 2024 · 0 comments · Fixed by #98931

Comments

@adamscott
Copy link
Member

Tested versions

System information

Godot v4.3.stable - Web - GLES3 (Compatibility) - Apple M1, or similar - (2 Threads)

Issue description

Repeating error as shown in this screenshot:

Capture d’écran, le 2024-11-07 à 12 58 08
godot.editor.js:12154 Uncaught TypeError: Cannot read properties of null (reading 'focus')
    at focus_timer (godot.editor.js:12154:20)

It relates to this part of the code, GodotIME.ime seems to be null, so calling focus() on it fails (line 49).

ime_active: function (active) {
function focus_timer() {
GodotIME.active = true;
GodotIME.ime.focus();
}
if (GodotIME.ime) {
if (active) {
GodotIME.ime.style.display = 'block';
setInterval(focus_timer, 100);
} else {
GodotIME.ime.style.display = 'none';
GodotConfig.canvas.focus();
GodotIME.active = false;
}
}
},

Steps to reproduce

Minimal reproduction project (MRP)

n/a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant