Make InputEventShortcut always pressed

This commit is contained in:
kobewi 2023-09-23 19:43:07 +02:00
parent c12d63556b
commit 90a0b19301
2 changed files with 6 additions and 0 deletions

View File

@ -1802,3 +1802,7 @@ String InputEventShortcut::to_string() {
return vformat("InputEventShortcut: shortcut=%s", shortcut->get_as_text());
}
InputEventShortcut::InputEventShortcut() {
pressed = true;
}

View File

@ -567,6 +567,8 @@ public:
virtual String as_text() const override;
virtual String to_string() override;
InputEventShortcut();
};
#endif // INPUT_EVENT_H