From 2001d432b60accecef37878f7cf30022b6c0d415 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Thu, 29 Nov 2007 17:16:04 +0000 Subject: [PATCH] For some reason we are getting key events with no name, which cause .endswith not to exist, which prints an error --- terminator | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminator b/terminator index b233adc6..d99850d4 100755 --- a/terminator +++ b/terminator @@ -270,7 +270,7 @@ class TerminatorTerm: self.term.closeterm (self) return (True) - if keyname == 'Tab' or keyname.endswith('_Tab'): + if keyname and (keyname == 'Tab' or keyname.endswith('_Tab')): if event.state == gtk.gdk.CONTROL_MASK: self.term.go_next (self) return (True)