summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorMarcel Admiraal <madmiraal@users.noreply.github.com>2021-05-13 18:13:24 +0100
committerMarcel Admiraal <madmiraal@users.noreply.github.com>2021-05-19 11:43:02 +0100
commit7104229a85acbc30bf5dcc9c8a0ada8571910456 (patch)
tree06ea7e0bd69e93d88d32039ece8375720f3e33e9 /scene
parentd0aaf4a1fd9e9943436ab6255a6d52257a794ce6 (diff)
Fix InputMap.action_erase_event() failing to erase events correctly.
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/shortcut.cpp2
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 {