parent
8fe2b62adf
commit
c23bed20b8
3 changed files with 25 additions and 3 deletions
|
|
@ -225,6 +225,16 @@ impl Ime {
|
|||
// Create new context supporting IME input.
|
||||
let _ = self.create_context(window, allowed);
|
||||
}
|
||||
|
||||
pub fn is_ime_allowed(&self, window: ffi::Window) -> bool {
|
||||
if self.is_destroyed() {
|
||||
false
|
||||
} else if let Some(Some(context)) = self.inner.contexts.get(&window) {
|
||||
context.is_allowed()
|
||||
} else {
|
||||
false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Drop for Ime {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue