Skip to content

Commit 4931318

Browse files
committed
comment on modifier change limitations
1 parent e35a97a commit 4931318

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/platform_impl/windows/event_loop.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,6 +1040,9 @@ unsafe fn public_window_callback_inner(
10401040
let mut result = ProcResult::DefWindowProc(wparam);
10411041

10421042
// Send new modifiers before sending key events.
1043+
// NOTE: Some modifier key presses are not reported as KeyDown/Up events when the same
1044+
// alternative side modifier is being held, e.g., in a sequence of ↓LShift ↓RShift ↑RShift the
1045+
// last event is not reported.
10431046
let mods_changed_callback = || match msg {
10441047
WM_KEYDOWN | WM_SYSKEYDOWN | WM_KEYUP | WM_SYSKEYUP => {
10451048
update_modifiers(window, userdata);

0 commit comments

Comments
 (0)