diff --git a/client_code/ChipsInput/__init__.py b/client_code/ChipsInput/__init__.py index d713dba8..128634e0 100644 --- a/client_code/ChipsInput/__init__.py +++ b/client_code/ChipsInput/__init__.py @@ -7,6 +7,7 @@ from anvil import HtmlPanel as _HtmlPanel from anvil.js import get_dom_node as _get_dom_node +from anvil.js.window import navigator from ..Chip import Chip from ..utils._component_helpers import _get_color, _html_injector, _spacing_property @@ -48,6 +49,9 @@ } +is_android = "Android" in navigator.userAgent + + class ChipsInput(ChipsInputTemplate): def __init__(self, **properties): self._chips = [] @@ -174,6 +178,11 @@ def _chip_input_key_down(self, js_event): self._reset_deleting(False) if js_event.key == "Tab": js_event.preventDefault() + + elif is_android and js_event.key == "Tab": + js_event.preventDefault() + self._chip_input_pressed_enter() + except IndexError: pass