Fix inverted groupsend handling and generally make it clearer what we mean here by not using the magic groupsend type values
This commit is contained in:
parent
a10babeb5d
commit
29d0414a04
|
@ -631,12 +631,14 @@ for %s (%s)' % (name, urlplugin.__class__.__name__))
|
||||||
return(True)
|
return(True)
|
||||||
|
|
||||||
# FIXME: This is all clearly wrong. We should be doing this better
|
# FIXME: This is all clearly wrong. We should be doing this better
|
||||||
# FIXMS: maybe we can emit the key event and let Terminator() care?
|
# maybe we can emit the key event and let Terminator() care?
|
||||||
if self.terminator.groupsend != 0 and self.vte.is_focus():
|
groupsend = self.terminator.groupsend
|
||||||
if self.group and self.terminator.groupsend == 1:
|
groupsend_type = self.terminator.groupsend_type
|
||||||
|
if groupsend != groupsend_type['off'] and self.vte.is_focus():
|
||||||
|
if self.group and groupsend == groupsend_type['group']:
|
||||||
self.terminator.group_emit(self, self.group, 'key-press-event',
|
self.terminator.group_emit(self, self.group, 'key-press-event',
|
||||||
event)
|
event)
|
||||||
if self.terminator.groupsend == 2:
|
if groupsend == groupsend_type['all']:
|
||||||
self.terminator.all_emit(self, 'key-press-event', event)
|
self.terminator.all_emit(self, 'key-press-event', event)
|
||||||
|
|
||||||
return(False)
|
return(False)
|
||||||
|
|
Loading…
Reference in New Issue