Fixing Ctrl-Tab and Ctrl-Shift-Tab behaviour
*closes LP#234904
This commit is contained in:
parent
18c62f3132
commit
ae922111b0
11
terminator
11
terminator
|
@ -635,13 +635,16 @@ text/plain
|
||||||
return (True)
|
return (True)
|
||||||
|
|
||||||
if keyname and (keyname == 'Tab' or keyname.endswith('_Tab')):
|
if keyname and (keyname == 'Tab' or keyname.endswith('_Tab')):
|
||||||
if event.state == gtk.gdk.CONTROL_MASK:
|
mask = gtk.gdk.CONTROL_MASK | gtk.gdk.SHIFT_MASK
|
||||||
self.terminator.go_next (self)
|
|
||||||
return (True)
|
|
||||||
if (event.state & mask) == mask:
|
if (event.state & mask) == mask:
|
||||||
self.terminator.go_prev (self)
|
self.terminator.go_prev (self)
|
||||||
return (True)
|
return (True)
|
||||||
|
mask = gtk.gdk.CONTROL_MASK
|
||||||
|
if (event.state & mask) == mask:
|
||||||
|
self.terminator.go_next (self)
|
||||||
|
return (True)
|
||||||
|
# Warning, mask value is either gtk.gdk.CONTROL_MASK or gtk.gdk.CONTROL_MASK | gtk.gdk.SHIFT_MASK
|
||||||
|
# if you intend to use it, reinit it
|
||||||
return (False)
|
return (False)
|
||||||
|
|
||||||
def zoom (self, zoom_in):
|
def zoom (self, zoom_in):
|
||||||
|
|
Loading…
Reference in New Issue