From 3dc97e4c5c6d8659fc6ecd4c1285a13b4c55253e Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Sat, 21 Dec 2013 10:04:55 +1100 Subject: [PATCH] contacts: make it easier to discard current search string ESC or ENTER will do it. --- contacts/contacts.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contacts/contacts.py b/contacts/contacts.py index 18f61bb..ebb2d2d 100644 --- a/contacts/contacts.py +++ b/contacts/contacts.py @@ -325,6 +325,8 @@ class Contacts(gtk.Window): def gotsym(self,sym): if sym == '': s = self.clist.str[:-1] + elif sym == '' or sym == '': + s = '' elif len(sym) > 1: s = self.clist.str elif ord(sym) >= 32: -- 2.39.5