build(deps): bump ohos-ime from 0.3.0 to 0.4.0, bump ohos-ime-sys from 0.1.4 to 0.2.0, (#37214)

This patch updates following crates
ohos-ime: v0.3.0 to v0.4.0
ohos-ime-sys: v0.1.4 to v0.2.0,

Testing: N/A
Fixes: N/A

Signed-off-by: Shubham Gupta <shubham13297@gmail.com>
This commit is contained in:
Shubham Gupta 2025-06-06 15:34:54 +08:00 committed by GitHub
parent 475a3dfa38
commit 836316c844
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 10 deletions

View file

@ -90,8 +90,8 @@ 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.3.0"
ohos-ime-sys = "0.1.4"
ohos-ime = "0.4.0"
ohos-ime-sys = "0.2.0"
ohos-vsync = "0.1.3"
xcomponent-sys = { version = "0.3.1", features = ["api-12", "keyboard-types"] }

View file

@ -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 configbuilder = ohos_ime::TextConfigBuilder::new();
let options = convert_ime_options(input_type, multiline);
let text_config = configbuilder
let text_config = ohos_ime::TextConfigBuilder::new()
.input_type(options.input_type)
.enterkey_type(options.enterkey_type)
.build();
let editor = RawTextEditorProxy::new(Box::new(ServoIme { text_config }));
ImeProxy::new(editor, attach_options)
let editor = RawTextEditorProxy::new(Box::new(ServoIme { text_config }))
.expect("Failed to create RawTextEditorProxy");
ImeProxy::new(editor, attach_options).expect("Failed to create IME proxy")
});
match ime.show_keyboard() {
Ok(()) => debug!("IME show keyboard - success"),