windows: Don't propagate window char message (#9470)
we were accidentally calling the input handler even when the keydown event asked it not to be propagated Release Notes: - N/A
This commit is contained in:
parent
0e83b22583
commit
31aaee9130
1 changed files with 3 additions and 1 deletions
|
@ -572,7 +572,9 @@ impl WindowsWindowInner {
|
||||||
keystroke,
|
keystroke,
|
||||||
is_held: lparam.0 & (0x1 << 30) > 0,
|
is_held: lparam.0 & (0x1 << 30) > 0,
|
||||||
};
|
};
|
||||||
if func(PlatformInput::KeyDown(event)).default_prevented {
|
|
||||||
|
let dispatch_event_result = func(PlatformInput::KeyDown(event));
|
||||||
|
if dispatch_event_result.default_prevented || !dispatch_event_result.propagate {
|
||||||
self.invalidate_client_area();
|
self.invalidate_client_area();
|
||||||
return LRESULT(0);
|
return LRESULT(0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue