mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 14:20:04 -04:00
egui_web: fix double-paste bug
This commit is contained in:
@@ -5,6 +5,9 @@ All notable changes to the `egui_web` integration will be noted in this file.
|
|||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
|
### Fixed ⭐
|
||||||
|
* Fix double-paste bug
|
||||||
|
|
||||||
|
|
||||||
## 0.12.0 - 2021-05-10
|
## 0.12.0 - 2021-05-10
|
||||||
|
|
||||||
|
|||||||
@@ -633,7 +633,8 @@ fn install_document_events(runner_ref: &AppRunnerRef) -> Result<(), JsValue> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(web_sys_unstable_apis)]
|
#[cfg(web_sys_unstable_apis)]
|
||||||
{
|
// paste is handled by IME text agent!
|
||||||
|
if false {
|
||||||
// paste
|
// paste
|
||||||
let runner_ref = runner_ref.clone();
|
let runner_ref = runner_ref.clone();
|
||||||
let closure = Closure::wrap(Box::new(move |event: web_sys::ClipboardEvent| {
|
let closure = Closure::wrap(Box::new(move |event: web_sys::ClipboardEvent| {
|
||||||
|
|||||||
Reference in New Issue
Block a user