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

Merge pull request #51215 from akien-mga/shortcut-rename-property-to-event

Shortcut: Rename `shortcut` property to `event`
This commit is contained in:
Rémi Verschelde
2021-08-05 15:52:20 +02:00
committed by GitHub
11 changed files with 69 additions and 74 deletions

View File

@@ -2456,7 +2456,7 @@ static bool is_shortcut_pressed(const String &p_path) {
if (shortcut.is_null()) {
return false;
}
InputEventKey *k = Object::cast_to<InputEventKey>(shortcut->get_shortcut().ptr());
InputEventKey *k = Object::cast_to<InputEventKey>(shortcut->get_event().ptr());
if (k == nullptr) {
return false;
}