Add a f11_modifier option; if True, it's Ctrl-Shift-F11 instead of just F11.

This commit is contained in:
Thomas Hurst 2008-06-09 19:01:16 +01:00
parent 1721a540c7
commit 4ac3d6dc76
2 changed files with 7 additions and 2 deletions

View File

@ -891,6 +891,7 @@ class Terminator:
self._zoomed = False self._zoomed = False
self._fullscreen = False self._fullscreen = False
self._f11_modifier = False
self.term_list = [] self.term_list = []
stores = [] stores = []
stores.append (config.TerminatorConfValuestoreRC ()) stores.append (config.TerminatorConfValuestoreRC ())
@ -907,6 +908,9 @@ class Terminator:
self.icon_theme = gtk.IconTheme () self.icon_theme = gtk.IconTheme ()
if self.conf.f11_modifier:
self._f11_modifier = True
if self.conf.handle_size in range (0,6): if self.conf.handle_size in range (0,6):
gtk.rc_parse_string(""" gtk.rc_parse_string("""
style "terminator-paned-style" { style "terminator-paned-style" {
@ -1025,7 +1029,7 @@ class Terminator:
keyname = gtk.gdk.keyval_name (event.keyval) keyname = gtk.gdk.keyval_name (event.keyval)
mask = gtk.gdk.CONTROL_MASK | gtk.gdk.SHIFT_MASK mask = gtk.gdk.CONTROL_MASK | gtk.gdk.SHIFT_MASK
if (keyname == 'F11'): if (keyname == 'F11' and (self._f11_modifier == False or event.state & mask)):
self.fullscreen_toggle () self.fullscreen_toggle ()
return (True) return (True)

View File

@ -126,6 +126,7 @@ class TerminatorConfValuestore:
'maximise' : False, 'maximise' : False,
'handle_size' : -1, 'handle_size' : -1,
'focus_on_close' : 'auto', 'focus_on_close' : 'auto',
'f11_modifier' : False,
} }
def __getattr__ (self, keyname): def __getattr__ (self, keyname):