Merge pull request #76926 from Sauermann/fix-call-to-unhandled-input

Propagate shortcut events to SubViewports
This commit is contained in:
Rémi Verschelde 2023-05-11 11:48:46 +02:00
commit f717cc0a38
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ class ShortcutBin : public Node {
if (Object::cast_to<InputEventKey>(p_event.ptr()) || Object::cast_to<InputEventShortcut>(p_event.ptr())) {
// HACK: Propagate the window input to the editor main window to handle global shortcuts.
grandparent_window->push_unhandled_input(p_event);
grandparent_window->push_input(p_event);
if (grandparent_window->is_input_handled()) {
get_viewport()->set_input_as_handled();