godotjs / javascript

Javascript binding for godotengine
https://godotjs.github.io/
MIT License
963 stars 84 forks source link

TextEdit can be focused when running game #206

Open nmerget opened 22 hours ago

nmerget commented 22 hours ago

Version

4.1-0.0.17

System information

Godot v4.1.5.rc (488757bd0) - Windows 10.0.22631 - Vulkan (Forward+) - dedicated NVIDIA RTX A3000 Laptop GPU (NVIDIA; 31.0.15.2879) - 11th Gen Intel(R) Core(TM) i5-11500H @ 2.90GHz (12 Threads)

Issue description

Attaching any .mjs script to an TextEdit Node will disable the focus when running the game

Steps to reproduce

  1. Create a script my-class.mjs
  2. Add a Control node
  3. Add a TextEdit node inside Control
  4. Attach my-class.mjs to TextEdit
  5. Run game
  6. Cannot write or focus TextEdit

Minimal reproduction project (MRP)

export default class MyClass extends godot.TextEdit {
  _ready() {
    console.log("I run in TextEdit");
  }
}