1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 06:10:06 -04:00

egui_web: improve text input on mobile and for IME

This commit is contained in:
Emil Ernerfeldt
2021-10-23 16:23:29 +02:00
parent 9a9b1b8746
commit 316202c33a
5 changed files with 62 additions and 30 deletions

View File

@@ -137,7 +137,8 @@ pub struct AppRunner {
prefer_dark_mode: Option<bool>,
last_save_time: f64,
screen_reader: crate::screen_reader::ScreenReader,
pub(crate) last_text_cursor_pos: Option<egui::Pos2>,
pub(crate) text_cursor_pos: Option<egui::Pos2>,
pub(crate) mutable_text_under_cursor: bool,
}
impl AppRunner {
@@ -163,7 +164,8 @@ impl AppRunner {
prefer_dark_mode,
last_save_time: now_sec(),
screen_reader: Default::default(),
last_text_cursor_pos: None,
text_cursor_pos: None,
mutable_text_under_cursor: false,
};
{