You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use bevy::prelude::*;use bevy_egui::{EguiContexts,EguiPlugin};fnmain(){App::new().add_plugins(DefaultPlugins).add_plugins(EguiPlugin)// Systems that create Egui widgets should be run during the `CoreSet::Update` set,// or after the `EguiSet::BeginFrame` system (which belongs to the `CoreSet::PreUpdate` set)..add_systems(Update, ui_example_system).run();}fnui_example_system(mutcontexts:EguiContexts,muttext:Local<String>){
egui::Window::new("Hello").show(contexts.ctx_mut(), |ui| {
ui.label("world");
ui.text_edit_singleline(&mut*text);});}
Run the example
Write something into the text edit field "asdfg"
switch focus of windows with any modifier keys (for me it's SuperLeft+Arrow, we have apple users reporting this as well though)
click with the mouse into the window to gain back focus
try writing in the text edit
This won't work since the mod key state is stuck and the textfield thinks you're inputting "Mod+Letter" instead of just "Letter"
The text was updated successfully, but these errors were encountered:
I temporarily changed the bevy dependency to point to the fix here bevyengine/bevy#14379 and it seems like this also solves this issue in a more detailed way.
I'll close this issue here then and try to help in the bevy repo to get it going.
How to reproduce:
simple.rs
exampleThe text was updated successfully, but these errors were encountered: