mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 14:20:04 -04:00
Update to winit 0.29 (#3649)
* Closes https://github.com/emilk/egui/issues/3542 * Closes https://github.com/emilk/egui/issues/2977 * Closes https://github.com/emilk/egui/issues/3303 --------- Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
This commit is contained in:
@@ -91,6 +91,7 @@ pub(crate) fn install_document_events(runner_ref: &WebRunner) -> Result<(), JsVa
|
||||
if let Some(key) = egui_key {
|
||||
runner.input.raw.events.push(egui::Event::Key {
|
||||
key,
|
||||
physical_key: None, // TODO
|
||||
pressed: true,
|
||||
repeat: false, // egui will fill this in for us!
|
||||
modifiers,
|
||||
@@ -157,6 +158,7 @@ pub(crate) fn install_document_events(runner_ref: &WebRunner) -> Result<(), JsVa
|
||||
if let Some(key) = translate_key(&event.key()) {
|
||||
runner.input.raw.events.push(egui::Event::Key {
|
||||
key,
|
||||
physical_key: None, // TODO
|
||||
pressed: false,
|
||||
repeat: false,
|
||||
modifiers,
|
||||
|
||||
Reference in New Issue
Block a user