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:
parent
b6b862cb00
commit
2001d432b6
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue