Skip to content

Conversation

rustbasic
Copy link
Contributor

@rustbasic rustbasic commented Sep 28, 2024

Fix: Selectable whether to key handling in IME

Fix Issues: Backspace & arrow keys are completely broken

How about the default value is false on Linux and true on other platforms?
it's target_os lint error.

impl Default for TextEditStyle {
    fn default() -> Self {
        Self {
            #[cfg(target_os = "linux")]
            ime_key_handling: false,
            #[cfg(not(target_os = "linux"))]
            ime_key_handling: true,
        }
    }
}

Copy link

Preview available at https://egui-pr-preview.github.io/pr/5182-patch131
Note that it might take a couple seconds for the update to show up after the preview_build workflow has completed.

@emilk emilk closed this in #5188 Sep 30, 2024
@emilk emilk closed this in 15d3d43 Sep 30, 2024
@rustbasic rustbasic mentioned this pull request Sep 30, 2024
1 task
hacknus pushed a commit to hacknus/egui that referenced this pull request Oct 30, 2024
* Closes emilk#5008
* Closes emilk#5182
* Bug introduced in emilk#4912

I suspect this will make IME no longer work on Linux, though I don't
know if it ever worked.
I rather have backspace/arrows working though.

Please help test this (I don't have Linux!)

# Tested on
* [x] Mac
* [ ] Linux Wayland
* [x] Linux X11
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

Successfully merging this pull request may close these issues.

[regression] [eframe] Backspace and arrow keys don't work in TextEdit eframe Linux: Backspace & arrow keys are completely broken

1 participant