From 90a0b193010d8efb06d9051b0486e27c9b9b263c Mon Sep 17 00:00:00 2001 From: kobewi Date: Sat, 23 Sep 2023 19:43:07 +0200 Subject: [PATCH] Make InputEventShortcut always pressed --- core/input/input_event.cpp | 4 ++++ core/input/input_event.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/core/input/input_event.cpp b/core/input/input_event.cpp index 9e341b2157f9..e99dd0459945 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 e9d4fb832532..ed7ccf0a9f1b 100644 --- a/core/input/input_event.h +++ b/core/input/input_event.h @@ -567,6 +567,8 @@ class InputEventShortcut : public InputEvent { virtual String as_text() const override; virtual String to_string() override; + + InputEventShortcut(); }; #endif // INPUT_EVENT_H