def METHOD_NAME() -> None:
    """
    Accept current search query. Focus original `BufferControl` again.
    """
    layout = get_app().layout
    search_control = layout.current_control
    target_buffer_control = layout.search_target_buffer_control
    from prompt_toolkit.layout.controls import BufferControl
    if not isinstance(search_control, BufferControl):
        return
    if target_buffer_control is None:
        return
    search_state = target_buffer_control.search_state
    # Update search state.
    if search_control.buffer.text:
        search_state.text = search_control.buffer.text
    # Apply search.
    target_buffer_control.buffer.apply_search(
        search_state, include_current_position=True
    )
    # Add query to history of search line.
    search_control.buffer.append_to_history()
    # Stop search and focus previous control again.
    stop_search(target_buffer_control)