File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1863,11 +1863,11 @@ def close(self, e=None):
18631863
18641864 def _on_key (self , e ):
18651865 key = e .key .lower ()
1866- if self ._autocompleter .on_key (e ):
1866+ if self ._is_composing :
1867+ pass
1868+ elif self ._autocompleter .on_key (e ):
18671869 e .stopPropagation ()
18681870 return
1869- elif self ._is_composing :
1870- pass
18711871 elif key == "enter" or key == "return" :
18721872 self .submit_soon ()
18731873 else :
@@ -2456,7 +2456,7 @@ def _on_key2(self, e):
24562456 key = e .key .lower ()
24572457 if self ._is_composing :
24582458 pass
2459- if key == "enter" or key == "return" :
2459+ elif key == "enter" or key == "return" :
24602460 e .stopPropagation ()
24612461 e .preventDefault ()
24622462 self ._on_name2_done ()
@@ -2691,11 +2691,11 @@ def _check_names(self):
26912691
26922692 def _on_key (self , e ):
26932693 key = e .key .lower ()
2694- if self ._autocompleter .on_key (e ):
2694+ if self ._is_composing :
2695+ pass
2696+ elif self ._autocompleter .on_key (e ):
26952697 e .stopPropagation ()
26962698 return
2697- elif self ._is_composing :
2698- pass
26992699 elif key == "enter" or key == "return" :
27002700 e .stopPropagation ()
27012701 e .preventDefault ()
You can’t perform that action at this time.
0 commit comments