make sure we do return codes properly for key handlers
This commit is contained in:
parent
6631af7e4d
commit
c7677b9c0e
@ -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):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user