mirror of
https://github.com/zed-industries/zed.git
synced 2026-05-24 05:25:18 +00:00
Currently the web backend for gpui doesn't send any events to the `InputHandler`'s like `EntityInputHandler` which are needed for the input example and the editor crate, among others. This PR makes it pass those events, in addition to also dealing with composition events so that IME works. It adds an invisible input element to listen for composition events, since canvases don't receive them. Release Notes: - N/A
72 lines
1.5 KiB
TOML
72 lines
1.5 KiB
TOML
[package]
|
|
name = "gpui_web"
|
|
version = "0.1.0"
|
|
publish.workspace = true
|
|
edition.workspace = true
|
|
license = "Apache-2.0"
|
|
autoexamples = false
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[features]
|
|
default = ["multithreaded"]
|
|
multithreaded = ["dep:wasm_thread"]
|
|
|
|
[lib]
|
|
path = "src/gpui_web.rs"
|
|
|
|
[target.'cfg(target_family = "wasm")'.dependencies]
|
|
gpui.workspace = true
|
|
parking_lot = { workspace = true, features = ["nightly"] }
|
|
gpui_wgpu.workspace = true
|
|
http_client.workspace = true
|
|
anyhow.workspace = true
|
|
futures.workspace = true
|
|
log.workspace = true
|
|
smallvec.workspace = true
|
|
uuid.workspace = true
|
|
wasm-bindgen.workspace = true
|
|
wasm-bindgen-futures = "0.4"
|
|
web-time.workspace = true
|
|
console_error_panic_hook = "0.1.7"
|
|
js-sys = "0.3"
|
|
raw-window-handle = "0.6"
|
|
wasm_thread = { version = "0.3", features = ["es_modules"], optional = true }
|
|
web-sys = { version = "0.3", features = [
|
|
"console",
|
|
"CompositionEvent",
|
|
"CssStyleDeclaration",
|
|
"DataTransfer",
|
|
"Document",
|
|
"DomRect",
|
|
"DragEvent",
|
|
"Element",
|
|
"EventTarget",
|
|
"File",
|
|
"FileList",
|
|
"HtmlCanvasElement",
|
|
"HtmlElement",
|
|
"HtmlInputElement",
|
|
"KeyboardEvent",
|
|
"MediaQueryList",
|
|
"MediaQueryListEvent",
|
|
"MouseEvent",
|
|
"Navigator",
|
|
"PointerEvent",
|
|
"ResizeObserver",
|
|
"ResizeObserverBoxOptions",
|
|
"ResizeObserverEntry",
|
|
"ResizeObserverSize",
|
|
"ResizeObserverOptions",
|
|
"Screen",
|
|
"Storage",
|
|
"VisualViewport",
|
|
"Headers",
|
|
"Request",
|
|
"RequestInit",
|
|
"RequestRedirect",
|
|
"Response",
|
|
"WheelEvent",
|
|
"Window",
|
|
] }
|