Merge pull request #82203 from KoBeWi/shortcuts_under_pressure

Make InputEventShortcut always pressed
This commit is contained in:
Rémi Verschelde
2023-09-24 23:36:09 +02:00
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()); 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 as_text() const override;
virtual String to_string() override; virtual String to_string() override;
InputEventShortcut();
}; };
#endif // INPUT_EVENT_H #endif // INPUT_EVENT_H