Skip to content

Incorrect typing behavior with TextEdit singleline and multiline with IbusWayland enabled #7485

@Alvenster

Description

@Alvenster

Describe the bug

Consider the following code :

use eframe;
fn main() {
    println!("Hello, world!");
    let options = eframe::NativeOptions::default();
    let app = eframe::run_native(
        "My app",
        options,
        Box::new(|_cc| Ok(Box::new(App::default())))
    );
}

#[derive(Default)]
struct App {
    text_edit: String,
}


impl eframe::App for App {
    fn update(&mut self, ctx: &eframe::egui::Context, frame: &mut eframe::Frame) {
        eframe::egui::Window::new("My Window").show(ctx, |ui| {

            ui.text_edit_singleline(&mut self.text_edit);
            ui.label("test");
        });
    }
}

When typing inside a singleline or multiline, I cannot type more than one character unless I manually defocus and refocus the widget. Another weird thing : Holding Alt allows me to type freely again as if there were no bug whatsoever.
Tried toggling X11, Wayland and wgpu features -> Does not affect the outcome.

This whole thing does not occur on windows (it does not occur on Wine either) and I cannot test for MacOs.

[Here is the bug caught in 4K ] (https://wim.nl.tab.digital/s/J8iSCTYtGWcc6YE)
For some reason Github does not accept my video file so i'm sharing it through my nextcloud

To Reproduce
Steps to reproduce the behavior:

  1. Copy, paste, and run the above described code
  2. Type inside the singleline
  3. Witness the fact that you cannot type more than one character
  4. Defocus and refocus the widget
  5. Type another single character
  6. Repeat until satisfied

Step to repoduce the other behavior:

  1. Copy, paste, and run the above described code
  2. Type inside the singleline
  3. Witness the fact that you cannot type more than one character
  4. Hold Alt
  5. Witness the fact that by hold Alt, it is possible to freely type

Expected behavior
The singleline should accept multiple character input without refocusing on the widget or holding Alt

Screenshots
Check the video

Desktop:

  • OS: Fedora 42 KDE Plasma 6.4.4 on Wayland session
  • eframe on latest main ( 08/29/2025 8PM)
  • Rust compiler version is 1.89.0
  • Hardware : DELL G7 with Nvidia Discrete GPU ( RTX 2060 )

Additional context
Knowing my laptop and the severall unrelated x11 and Wayland issues (with external monitors or sleep mode disabling discrete GPU) i am suspecting a harware issue so I made a hardware probe in case this is helpful. There

Thank you for your time. I have upmost respect for your work

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is broken

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions