You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Fix handling multiple "physical key" events in the single input map action.
This commit is contained in:
@@ -329,8 +329,13 @@ bool InputEventKey::shortcut_match(const Ref<InputEvent> &p_event, bool p_exact_
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (scancode == 0) {
|
||||||
|
return physical_scancode == key->physical_scancode &&
|
||||||
|
(!p_exact_match || get_modifiers_mask() == key->get_modifiers_mask());
|
||||||
|
} else {
|
||||||
return scancode == key->scancode &&
|
return scancode == key->scancode &&
|
||||||
(!p_exact_match || get_modifiers_mask() == key->get_modifiers_mask());
|
(!p_exact_match || get_modifiers_mask() == key->get_modifiers_mask());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void InputEventKey::_bind_methods() {
|
void InputEventKey::_bind_methods() {
|
||||||
|
|||||||
Reference in New Issue
Block a user