diff options
author | Marcel Admiraal <madmiraal@users.noreply.github.com> | 2021-05-13 18:13:24 +0100 |
---|---|---|
committer | Marcel Admiraal <madmiraal@users.noreply.github.com> | 2021-05-19 11:43:02 +0100 |
commit | 7104229a85acbc30bf5dcc9c8a0ada8571910456 (patch) | |
tree | 06ea7e0bd69e93d88d32039ece8375720f3e33e9 /scene | |
parent | d0aaf4a1fd9e9943436ab6255a6d52257a794ce6 (diff) |
Fix InputMap.action_erase_event() failing to erase events correctly.
Diffstat (limited to 'scene')
-rw-r--r-- | scene/gui/shortcut.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/shortcut.cpp b/scene/gui/shortcut.cpp index cbbcf9e069..962c6dcc60 100644 --- a/scene/gui/shortcut.cpp +++ b/scene/gui/shortcut.cpp @@ -42,7 +42,7 @@ Ref<InputEvent> Shortcut::get_shortcut() const { } bool Shortcut::is_shortcut(const Ref<InputEvent> &p_event) const { - return shortcut.is_valid() && shortcut->shortcut_match(p_event); + return shortcut.is_valid() && shortcut->is_match(p_event, true); } String Shortcut::get_as_text() const { |