# HG changeset patch # User Sadrul Habib Chowdhury # Date 1194810122 0 # Node ID 0208beabfa338ffa8fe3ef0179359801a09d0436 # Parent add12afc31400f79b63695c7c930d1c156044b58 Cancel the typeahead search when escape is pressed. diff -r add12afc3140 -r 0208beabfa33 finch/gntblist.c --- a/finch/gntblist.c Sat Nov 10 23:48:57 2007 +0000 +++ b/finch/gntblist.c Sun Nov 11 19:42:02 2007 +0000 @@ -1506,6 +1506,8 @@ { if (text[0] == 27 && text[1] == 0) { /* Escape was pressed */ + if (gnt_tree_is_searching(GNT_TREE(ggblist->tree))) + gnt_bindable_perform_action_named(GNT_BINDABLE(ggblist->tree), "end-search", NULL); remove_peripherals(ggblist); } else if (strcmp(text, GNT_KEY_CTRL_O) == 0) { purple_prefs_set_bool(PREF_ROOT "/showoffline",