egui_web: fix double-paste bug

This commit is contained in:
Emil Ernerfeldt
2021-05-11 19:25:31 +02:00
parent 7b0f991b20
commit 934bb7f5e9
2 changed files with 5 additions and 1 deletions
+2 -1
View File
@@ -633,7 +633,8 @@ fn install_document_events(runner_ref: &AppRunnerRef) -> Result<(), JsValue> {
}
#[cfg(web_sys_unstable_apis)]
{
// paste is handled by IME text agent!
if false {
// paste
let runner_ref = runner_ref.clone();
let closure = Closure::wrap(Box::new(move |event: web_sys::ClipboardEvent| {