Skip to content

Commit

Permalink
Merge pull request #82203 from KoBeWi/shortcuts_under_pressure
Browse files Browse the repository at this point in the history
Make InputEventShortcut always pressed
  • Loading branch information
akien-mga committed Sep 24, 2023
2 parents d8c3115 + 90a0b19 commit 0b4959b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/input/input_event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1802,3 +1802,7 @@ String InputEventShortcut::to_string() {

return vformat("InputEventShortcut: shortcut=%s", shortcut->get_as_text());
}

InputEventShortcut::InputEventShortcut() {
pressed = true;
}
2 changes: 2 additions & 0 deletions core/input/input_event.h
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,8 @@ class InputEventShortcut : public InputEvent {

virtual String as_text() const override;
virtual String to_string() override;

InputEventShortcut();
};

#endif // INPUT_EVENT_H

0 comments on commit 0b4959b

Please sign in to comment.