mirror of
https://github.com/servo/servo.git
synced 2025-08-24 14:48:21 +01:00
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 <shubham13297@gmail.com>
This commit is contained in:
parent
1f315e6c9c
commit
54f23a8e3d
3 changed files with 5 additions and 5 deletions
|
@ -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"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue