From 54f23a8e3d56bb334b4ddebcabd7955f138c9ad1 Mon Sep 17 00:00:00 2001 From: Shubham Gupta <32428749+shubhamg13@users.noreply.github.com> Date: Thu, 29 May 2025 17:50:33 +0800 Subject: [PATCH] build(deps): bump ohos-ime from 0.2.0 to 0.3.0 (#37180) This patch updates the ohos-ime version from v0.2.0 to v0.3.0 Testing: N/A Fixes: #37181 Signed-off-by: Shubham Gupta --- Cargo.lock | 4 ++-- ports/servoshell/Cargo.toml | 2 +- ports/servoshell/egl/ohos.rs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c705988700b..5795feb3ac6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5395,9 +5395,9 @@ dependencies = [ [[package]] name = "ohos-ime" -version = "0.2.0" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "48107e68ed8451c17c2ff95938e1ba86003fb290a04f7a0213ce2d16ce4b3ee6" +checksum = "ee3ea454e31a3372cd9c4ed903db4fae861e92f57cf51852a3cd80f9d3945dcd" dependencies = [ "log", "ohos-ime-sys", diff --git a/ports/servoshell/Cargo.toml b/ports/servoshell/Cargo.toml index aa1e6259a37..edeaef5408f 100644 --- a/ports/servoshell/Cargo.toml +++ b/ports/servoshell/Cargo.toml @@ -90,7 +90,7 @@ hilog = "0.2.0" ipc-channel = { workspace = true, features = ["force-inprocess"] } napi-derive-ohos = "1.0.4" napi-ohos = "1.0.4" -ohos-ime = "0.2" +ohos-ime = "0.3.0" ohos-ime-sys = "0.1.4" ohos-vsync = "0.1.3" xcomponent-sys = { version = "0.3.1", features = ["api-12", "keyboard-types"] } diff --git a/ports/servoshell/egl/ohos.rs b/ports/servoshell/egl/ohos.rs index ceccbdbe900..b9587771a50 100644 --- a/ports/servoshell/egl/ohos.rs +++ b/ports/servoshell/egl/ohos.rs @@ -867,14 +867,14 @@ impl HostTrait for HostCallbacks { let mut ime_proxy = self.ime_proxy.borrow_mut(); let ime = ime_proxy.get_or_insert_with(|| { let attach_options = AttachOptions::new(true); - let editor = RawTextEditorProxy::new(); let configbuilder = ohos_ime::TextConfigBuilder::new(); let options = convert_ime_options(input_type, multiline); let text_config = configbuilder .input_type(options.input_type) .enterkey_type(options.enterkey_type) .build(); - ImeProxy::new(editor, attach_options, Box::new(ServoIme { text_config })) + let editor = RawTextEditorProxy::new(Box::new(ServoIme { text_config })); + ImeProxy::new(editor, attach_options) }); match ime.show_keyboard() { Ok(()) => debug!("IME show keyboard - success"),