File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ Unreleased` header.
11
11
12
12
# Unreleased
13
13
14
+ - On macOS, remove spurious error logging when handling ` Fn ` .
15
+
14
16
# 0.29.4
15
17
16
18
- Fix crash when running iOS app on macOS.
Original file line number Diff line number Diff line change @@ -88,7 +88,9 @@ pub fn get_modifierless_char(scancode: u16) -> Key {
88
88
return Key :: Unidentified ( NativeKey :: MacOS ( scancode) ) ;
89
89
}
90
90
if result_len == 0 {
91
- log:: error!( "`UCKeyTranslate` was succesful but gave a string of 0 length." ) ;
91
+ // This is fine - not all keys have text representation.
92
+ // For instance, users that have mapped the `Fn` key to toggle
93
+ // keyboard layouts will hit this code path.
92
94
return Key :: Unidentified ( NativeKey :: MacOS ( scancode) ) ;
93
95
}
94
96
let chars = String :: from_utf16_lossy ( & string[ 0 ..result_len as usize ] ) ;
You can’t perform that action at this time.
0 commit comments