Skip to content

Commit 6755421

Browse files
committed
Fix Input modifiers released condition
1 parent 7864ac8 commit 6755421

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/input/input_event.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,8 @@ bool InputEventKey::action_match(const Ref<InputEvent> &p_event, bool p_exact_ma
578578
Key key_mask = (Key)(int64_t)key->get_modifiers_mask();
579579
if (key->is_pressed()) {
580580
match &= (action_mask & key_mask) == action_mask;
581+
} else {
582+
match |= (action_mask & key_mask) == key_mask;
581583
}
582584
if (p_exact_match) {
583585
match &= action_mask == key_mask;

0 commit comments

Comments
 (0)