make sure we do return codes properly for key handlers

This commit is contained in:
Chris Jones 2008-11-28 12:59:32 +00:00
parent 6631af7e4d
commit c7677b9c0e
1 changed files with 3 additions and 1 deletions

View File

@ -418,10 +418,12 @@ class Terminator:
dbg("on_key_press: lookup found %r" % mapping)
if mapping == 'full_screen':
self.fullscreen_toggle ()
return (True)
elif mapping == 'close_window':
if not self.on_delete_event (window, gtk.gdk.Event (gtk.gdk.DELETE)):
self.on_destroy_event (window, gtk.gdk.Event (gtk.gdk.DESTROY))
else:
return (False)
return (True)
def set_window_title(self, title):
"""