Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nonbreaking space is reported wrong on macOS #4059

Open
fredizzimo opened this issue Dec 24, 2024 · 0 comments
Open

Nonbreaking space is reported wrong on macOS #4059

fredizzimo opened this issue Dec 24, 2024 · 0 comments
Labels
B - bug Dang, that shouldn't have happened DS - macos

Comments

@fredizzimo
Copy link

fredizzimo commented Dec 24, 2024

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.1

Winit version

0.29.15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B - bug Dang, that shouldn't have happened DS - macos
Development

No branches or pull requests

1 participant