code: def accept_search_and_accept_input(event: E) -> None:
      """
      Accept the search operation first, then accept the input.
      """
      search.accept_search()
      event.current_buffer.validate_and_handle()
  
file_path: catboost/contrib/python/prompt-toolkit/py3/prompt_toolkit/key_binding/bindings/search.py
imports: from __future__ import annotations
  from prompt_toolkit import search
  from prompt_toolkit.application.current import get_app
  from prompt_toolkit.filters import Condition, control_is_searchable, is_searching
  from prompt_toolkit.key_binding.key_processor import KeyPressEvent
  from ..key_bindings import key_binding
label_desc: Use image node_id 8 for calling a global function with example usage: accept_search_and_accept_input(event) without return types