Expose keybindings for setting the broadcast modes. Closes LP #598410
This commit is contained in:
parent
6c2d6bbea6
commit
597f4ff75d
|
@ -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': {
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue