Fix handling multiple "physical key" events in the single input map action.
This commit is contained in:
parent
da5c843bd1
commit
b97ca39360
1 changed files with 7 additions and 2 deletions
|
@ -329,8 +329,13 @@ bool InputEventKey::shortcut_match(const Ref<InputEvent> &p_event, bool p_exact_
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return scancode == key->scancode &&
|
if (scancode == 0) {
|
||||||
(!p_exact_match || get_modifiers_mask() == key->get_modifiers_mask());
|
return physical_scancode == key->physical_scancode &&
|
||||||
|
(!p_exact_match || get_modifiers_mask() == key->get_modifiers_mask());
|
||||||
|
} else {
|
||||||
|
return scancode == key->scancode &&
|
||||||
|
(!p_exact_match || get_modifiers_mask() == key->get_modifiers_mask());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void InputEventKey::_bind_methods() {
|
void InputEventKey::_bind_methods() {
|
||||||
|
|
Loading…
Reference in a new issue