android: use show_soft_input to summon the keyboard
Route it via the `Window::set_ime_allowed` like on iOS.
This commit is contained in:
parent
74958ecc6f
commit
9f8ac8feb5
3 changed files with 10 additions and 3 deletions
|
|
@ -925,7 +925,13 @@ impl CoreWindow for Window {
|
|||
|
||||
fn set_ime_cursor_area(&self, _position: Position, _size: Size) {}
|
||||
|
||||
fn set_ime_allowed(&self, _allowed: bool) {}
|
||||
fn set_ime_allowed(&self, allowed: bool) {
|
||||
if allowed {
|
||||
self.app.show_soft_input(true);
|
||||
} else {
|
||||
self.app.hide_soft_input(true);
|
||||
}
|
||||
}
|
||||
|
||||
fn set_ime_purpose(&self, _purpose: ImePurpose) {}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue