Example #1
0
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()
Example #4
0
 def _(event):
     " Cancel search when backspace is pressed. "
     stop_search()
Example #5
0
 def _(event):
     " Cancel search when backspace is pressed. "
     stop_search()
Example #6
0
 def _cancel_search(event: E) -> None:
     " Cancel search when backspace is pressed. "
     stop_search()