Skip to content

Commit bc2fa18

Browse files
authored
Merge branch 'master' into set_parent_ns_window
2 parents 0338230 + 19ea5b0 commit bc2fa18

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/macos/keyboard.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,8 @@ impl KeyboardState {
311311
return None;
312312
}
313313
}
314-
_ => unreachable!(),
314+
// In case another event type ends up here, do not produce any kind of keyboard event.
315+
_ => return None,
315316
};
316317
let is_composing = false;
317318
let repeat: bool = event_type == NSEventType::NSKeyDown && msg_send![event, isARepeat];

0 commit comments

Comments
 (0)