For some reason we are getting key events with no name, which cause .endswith not to exist, which prints an error

This commit is contained in:
Chris Jones 2007-11-29 17:16:04 +00:00
parent b6b862cb00
commit 2001d432b6
1 changed files with 1 additions and 1 deletions

View File

@ -270,7 +270,7 @@ class TerminatorTerm:
self.term.closeterm (self) self.term.closeterm (self)
return (True) 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: if event.state == gtk.gdk.CONTROL_MASK:
self.term.go_next (self) self.term.go_next (self)
return (True) return (True)