mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-31 13:50:05 -04:00
@@ -11,6 +11,8 @@ Unreleased` header.
|
|||||||
|
|
||||||
# Unreleased
|
# Unreleased
|
||||||
|
|
||||||
|
- On macOS, remove spurious error logging when handling `Fn`.
|
||||||
|
|
||||||
# 0.29.4
|
# 0.29.4
|
||||||
|
|
||||||
- Fix crash when running iOS app on macOS.
|
- Fix crash when running iOS app on macOS.
|
||||||
|
|||||||
@@ -88,7 +88,9 @@ pub fn get_modifierless_char(scancode: u16) -> Key {
|
|||||||
return Key::Unidentified(NativeKey::MacOS(scancode));
|
return Key::Unidentified(NativeKey::MacOS(scancode));
|
||||||
}
|
}
|
||||||
if result_len == 0 {
|
if result_len == 0 {
|
||||||
log::error!("`UCKeyTranslate` was succesful but gave a string of 0 length.");
|
// This is fine - not all keys have text representation.
|
||||||
|
// For instance, users that have mapped the `Fn` key to toggle
|
||||||
|
// keyboard layouts will hit this code path.
|
||||||
return Key::Unidentified(NativeKey::MacOS(scancode));
|
return Key::Unidentified(NativeKey::MacOS(scancode));
|
||||||
}
|
}
|
||||||
let chars = String::from_utf16_lossy(&string[0..result_len as usize]);
|
let chars = String::from_utf16_lossy(&string[0..result_len as usize]);
|
||||||
|
|||||||
Reference in New Issue
Block a user