emilk / egui

egui: an easy-to-use immediate mode GUI in Rust that runs on both web and native
https://www.egui.rs/
Apache License 2.0
21.97k stars 1.59k forks source link

TextEdits don't support the emoji and symbols palette aka character viewer on MacOS #2359

Open NonsenseInc opened 1 year ago

NonsenseInc commented 1 year ago

Describe the bug TextEdits don't support the emoji and symbols palette aka character viewer on MacOS

To Reproduce Steps to reproduce the behavior:

  1. cargo run --release -p egui_demo_app
  2. select a TextEdit
  3. press ctrl+cmd+space
  4. nothing happens

Expected behavior On MacOS when in a textfield ctrl+cmd+space should open a emoji and symbols palette

Screenshots

image

Desktop (please complete the following information):

jb55 commented 3 months ago

what apis are needed here to enable this? 🤔

emilk commented 3 months ago

We do call set_ime_allowed and set_ime_cursor_area, which one would think would be enough to communicate to winit and macOS that "There's text input happening here!" but apparently not.

Is there maybe a relevant winit issue and/or example for this?

jb55 commented 3 months ago

Looks like the related winit issue is here: