1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 21:30:03 -04:00

[egui_web] Call prevent_default for arrow keys when entering text

Closes https://github.com/emilk/egui/issues/58
This commit is contained in:
Emil Ernerfeldt
2021-01-17 12:22:19 +01:00
parent 718eec4b89
commit b869db728b
3 changed files with 36 additions and 19 deletions

View File

@@ -154,6 +154,10 @@ impl AppRunner {
})
}
pub fn egui_ctx(&self) -> &egui::CtxRef {
&self.web_backend.ctx
}
pub fn auto_save(&mut self) {
let now = now_sec();
let time_since_last_save = now - self.last_save_time;