diff --git a/core/input/input_event.cpp b/core/input/input_event.cpp index 9e341b2157f..e99dd045994 100644 --- a/core/input/input_event.cpp +++ b/core/input/input_event.cpp @@ -1802,3 +1802,7 @@ String InputEventShortcut::to_string() { return vformat("InputEventShortcut: shortcut=%s", shortcut->get_as_text()); } + +InputEventShortcut::InputEventShortcut() { + pressed = true; +} diff --git a/core/input/input_event.h b/core/input/input_event.h index e9d4fb83253..ed7ccf0a9f1 100644 --- a/core/input/input_event.h +++ b/core/input/input_event.h @@ -567,6 +567,8 @@ public: virtual String as_text() const override; virtual String to_string() override; + + InputEventShortcut(); }; #endif // INPUT_EVENT_H