Skip to content

Commit

Permalink
Use android-activity's show_soft_input to summon the keyboard.
Browse files Browse the repository at this point in the history
  • Loading branch information
podusowski committed Nov 10, 2024
1 parent ae4c449 commit dd1dfb1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/platform_impl/android/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,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) {}

Expand Down

0 comments on commit dd1dfb1

Please sign in to comment.