File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -288,6 +288,10 @@ def _update_options(self, options: list[Option]) -> None:
288288 if focus_item := self ._group .focus_item :
289289 self ._set_preview (focus_item .get_id ())
290290
291+ def on_input_submitted (self , event : Input .Submitted ) -> None :
292+ if self .query_one (Input ).has_focus :
293+ self ._handle_search_action ()
294+
291295 def on_option_list_option_selected (self , event : OptionList .OptionSelected ) -> None :
292296 selected_option = event .option
293297 if selected_option .id is not None :
@@ -488,6 +492,10 @@ def compose(self) -> ComposeResult:
488492
489493 yield Footer ()
490494
495+ def on_input_submitted (self , event : Input .Submitted ) -> None :
496+ if self .query_one (Input ).has_focus :
497+ self ._handle_search_action ()
498+
491499 def on_mount (self ) -> None :
492500 self ._update_options (self ._options )
493501 self .query_one (SelectionList ).focus ()
You can’t perform that action at this time.
0 commit comments