Expose keybindings for setting the broadcast modes. Closes LP #598410

This commit is contained in:
Chris Jones 2010-07-03 18:54:53 +01:00
parent 6c2d6bbea6
commit 597f4ff75d
3 changed files with 16 additions and 0 deletions

View File

@ -147,6 +147,9 @@ DEFAULTS = {
'ungroup_tab' : '<Shift><Super>t',
'new_window' : '<Shift><Control>i',
'new_terminator' : '<Super>i',
'broadcast_off' : '',
'broadcast_group' : '',
'broadcast_all' : ''
},
'profiles': {
'default': {

View File

@ -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):

View File

@ -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)