why is the widget not closing?

It worked with other widgets, but when I paste it to this one it won’t. Does anyone know what’s going on?


Hey @VKittyCat2022!

Try rebuilding it from scratch- just disconnect it from the beginning and end, move the code down, and use that as a guide to rebuild it. Sometimes copy and paste doesn’t work right, and Widgets are ESPECIALLY prone to issues from copy/paste.

Give that a shot and let us know how it goes!

Check to see if Is Focusable is set to true. I believe OnKeyDown isn’t called when Is Focusable is false.

1 Like

In addition to the focus toggle mentioned above, I think you also need to have the input mode set to “UI only,” or “game and UI” if it’s not already