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

Keyboard not correctly working with input #196

Open
simbleau opened this issue Jul 29, 2023 · 0 comments
Open

Keyboard not correctly working with input #196

simbleau opened this issue Jul 29, 2023 · 0 comments

Comments

@simbleau
Copy link

simbleau commented Jul 29, 2023

In egui.rs' demo - keys like '@' work just fine. Appears to be a bevy_egui issue.

On my keyboard, Option (Mac) + '*' is the @ symbol (Danish keybaord).

Bevy 0.11 and here's how I setup my Bevy proj:

    #[cfg(target_arch = "wasm32")]
    let window_plugin = WindowPlugin {
        primary_window: Some(Window {
            // Use V-sync and fall back to FIFO
            present_mode: PresentMode::AutoVsync,
            // Tells wasm to resize the window according to the
            // available canvas
            fit_canvas_to_parent: true,
            // Tells wasm not to override default event handling,
            // like F5, Ctrl+R etc.
            prevent_default_event_handling: true,
            // Use a canvas that exists
            canvas: Some("#c".to_string()),
            ..default()
        }),
        ..default()
    };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant