def abort_search(event: E) -> None: """ Abort an incremental search and restore the original line. (Usually bound to ControlG/ControlC.) """ search.stop_search()
def abort_search(event): """ Abort an incremental search and restore the original line. (Usually bound to ControlG/ControlC.) """ search.stop_search()
def do_exit_find(event): stop_search() get_app().layout.focus(hb.app.input_field.control) get_app().invalidate()
def _(event): " Cancel search when backspace is pressed. " stop_search()
def _cancel_search(event: E) -> None: " Cancel search when backspace is pressed. " stop_search()