fix: context menu by disabling IME when the widget has context menu
This commit is contained in:
parent
c22d1ccc28
commit
1963929e05
1 changed files with 3 additions and 0 deletions
|
|
@ -244,6 +244,9 @@ where
|
||||||
if !state.is_focused {
|
if !state.is_focused {
|
||||||
return InputMethod::Disabled;
|
return InputMethod::Disabled;
|
||||||
}
|
}
|
||||||
|
if let Some(_) = self.context_menu {
|
||||||
|
return InputMethod::Disabled;
|
||||||
|
}
|
||||||
|
|
||||||
let view_position = layout.position() + [self.padding.left, self.padding.top].into();
|
let view_position = layout.position() + [self.padding.left, self.padding.top].into();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue