-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Nonbreaking space is reported wrong on macOS #4059
Copy link
Copy link
Open
Labels
B - bugDang, that shouldn't have happenedDang, that shouldn't have happenedDS - appkitAffects the AppKit/macOS backendAffects the AppKit/macOS backend
Description
Description
This was reported for Neovide here
Input Option+Shift+Space, which should produce a non-breaking space. In Neovide, we receive the following event
KeyEvent {
physical_key: Code(
Space,
),
logical_key: Named(
Space,
),
text: Some(
" ",
),
location: Standard,
state: Pressed,
repeat: false,
platform_specific: KeyEventExtra {
text_with_all_modifiers: Some(
"\u{a0}",
),
key_without_modifiers: Named(
Space,
),
},
}
The non-breaking space is correctly reported in text_with_all_modifiers, but I would expect it to be reported in text like any other input.
The same thing also happens with narrow non breaking space for example.
KeyEvent {
physical_key: Code(
Space,
),
logical_key: Named(
Space,
),
text: None,
location: Standard,
state: Released,
repeat: false,
platform_specific: KeyEventExtra {
text_with_all_modifiers: Some(
"\u{202f}",
),
key_without_modifiers: Named(
Space,
),
},
}
macOS version
macOS 15.1.1Winit version
0.29.15
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
B - bugDang, that shouldn't have happenedDang, that shouldn't have happenedDS - appkitAffects the AppKit/macOS backendAffects the AppKit/macOS backend