From: NeilBrown Date: Fri, 20 Dec 2013 23:04:55 +0000 (+1100) Subject: contacts: make it easier to discard current search string X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=3dc97e4c5c6d8659fc6ecd4c1285a13b4c55253e;p=plato.git contacts: make it easier to discard current search string ESC or ENTER will do it. --- 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: