Only perform emits if active window. Closes LP #690947
This commit is contained in:
parent
7f7ac93d4e
commit
9e13bb6aae
@ -747,7 +747,9 @@ for %s (%s)' % (name, urlplugin.__class__.__name__))
|
||||
# maybe we can emit the key event and let Terminator() care?
|
||||
groupsend = self.terminator.groupsend
|
||||
groupsend_type = self.terminator.groupsend_type
|
||||
if groupsend != groupsend_type['off'] and self.vte.is_focus():
|
||||
if groupsend != groupsend_type['off'] \
|
||||
and self.vte.is_focus() \
|
||||
and self.get_toplevel().is_active():
|
||||
if self.group and groupsend == groupsend_type['group']:
|
||||
self.terminator.group_emit(self, self.group, 'key-press-event',
|
||||
event)
|
||||
|
Loading…
Reference in New Issue
Block a user