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:
Piotr Podusowski
2024-11-13 12:43:59 +01:00
committed by Kirill Chibisov
parent bab2d82fd3
commit 1d18a6ca57
3 changed files with 10 additions and 2 deletions

View File

@@ -908,7 +908,13 @@ impl Window {
pub fn set_ime_cursor_area(&self, _position: Position, _size: Size) {}
pub fn set_ime_allowed(&self, _allowed: bool) {}
pub fn set_ime_allowed(&self, allowed: bool) {
if allowed {
self.app.show_soft_input(true);
} else {
self.app.hide_soft_input(true);
}
}
pub fn set_ime_purpose(&self, _purpose: ImePurpose) {}