diff --git a/terminatorlib/config.py b/terminatorlib/config.py index d7a4a60a..fd3804bf 100755 --- a/terminatorlib/config.py +++ b/terminatorlib/config.py @@ -147,6 +147,9 @@ DEFAULTS = { 'ungroup_tab' : 't', 'new_window' : 'i', 'new_terminator' : 'i', + 'broadcast_off' : '', + 'broadcast_group' : '', + 'broadcast_all' : '' }, 'profiles': { 'default': { diff --git a/terminatorlib/prefseditor.py b/terminatorlib/prefseditor.py index a7333f8c..6f3f1fb6 100755 --- a/terminatorlib/prefseditor.py +++ b/terminatorlib/prefseditor.py @@ -122,6 +122,9 @@ class PrefsEditor: 'ungroup_tab' : 'Ungroup terminals in tab', 'new_window' : 'Create a new window', 'new_terminator' : 'Spawn a new Terminator process', + 'broadcast_off' : 'Don\'t broadcast key presses', + 'broadcast_group' : 'Broadcast key presses to group', + 'broadcast_all' : 'Broadcast key events to all' } def __init__ (self, term): diff --git a/terminatorlib/terminal.py b/terminatorlib/terminal.py index cc258f20..611e9a0e 100755 --- a/terminatorlib/terminal.py +++ b/terminatorlib/terminal.py @@ -1497,6 +1497,16 @@ for %s (%s)' % (name, urlplugin.__class__.__name__)) dbg("Terminal::key_new_window: Spawning: %s" % cmd) subprocess.Popen([cmd, ]) + + def key_broadcast_off(self): + self.set_groupsend(None, self.terminator.groupsend_type['off']) + + def key_broadcast_group(self): + self.set_groupsend(None, self.terminator.groupsend_type['group']) + + def key_broadcast_all(self): + self.set_groupsend(None, self.terminator.groupsend_type['all']) + # End key events gobject.type_register(Terminal)