1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-11 13:10:58 +00:00

command palette improvements

This commit is contained in:
Bhuvan Vemula
2021-08-11 15:51:31 +05:30
parent a98589a449
commit a0205e4f34
6 changed files with 40 additions and 43 deletions

View File

@@ -43,7 +43,7 @@ Ref<InputEvent> Shortcut::get_event() const {
bool Shortcut::matches_event(const Ref<InputEvent> &p_event) const {
Ref<InputEventShortcut> ies = p_event;
if (ies != nullptr) {
if (ies.is_valid()) {
if (ies->get_shortcut().ptr() == this) {
return true;
}