mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-27 07:03:15 -04:00
Fix ReceivedCharacter not working with Alt held on Windows (#1282)
* Fix ReceivedCharacter with Alt held on Windows * Update CHANGELOG.md
This commit is contained in:
@@ -1112,7 +1112,7 @@ unsafe extern "system" fn public_window_callback<T>(
|
||||
0
|
||||
}
|
||||
|
||||
winuser::WM_CHAR => {
|
||||
winuser::WM_CHAR | winuser::WM_SYSCHAR => {
|
||||
use crate::event::WindowEvent::ReceivedCharacter;
|
||||
use std::char;
|
||||
let is_high_surrogate = 0xD800 <= wparam && wparam <= 0xDBFF;
|
||||
@@ -1145,12 +1145,6 @@ unsafe extern "system" fn public_window_callback<T>(
|
||||
0
|
||||
}
|
||||
|
||||
// Prevents default windows menu hotkeys playing unwanted
|
||||
// "ding" sounds. Alternatively could check for WM_SYSCOMMAND
|
||||
// with wparam being SC_KEYMENU, but this may prevent some
|
||||
// other unwanted default hotkeys as well.
|
||||
winuser::WM_SYSCHAR => 0,
|
||||
|
||||
winuser::WM_SYSCOMMAND => {
|
||||
if wparam == winuser::SC_SCREENSAVE {
|
||||
let window_state = subclass_input.window_state.lock();
|
||||
|
||||
Reference in New Issue
Block a user