for ctrl+[shift]+tab it works. I put a print in what you said it's a gtk+ bug and it get called so it may be one [need small example to show the case]
This commit is contained in:
parent
07a70ae4a0
commit
b64634880f
|
@ -448,15 +448,15 @@ class Chat:
|
||||||
if event.state & gtk.gdk.CONTROL_MASK: # CTRL + SHIFT + TAB
|
if event.state & gtk.gdk.CONTROL_MASK: # CTRL + SHIFT + TAB
|
||||||
current = self.notebook.get_current_page()
|
current = self.notebook.get_current_page()
|
||||||
if current > 0:
|
if current > 0:
|
||||||
self.notebook.set_current_page(current - 1)
|
self.notebook.prev_page()
|
||||||
else:
|
else: # traverse for ever (eg. don't stop at first tab)
|
||||||
self.notebook.set_current_page(self.notebook.get_n_pages()-1)
|
self.notebook.set_current_page(self.notebook.get_n_pages()-1)
|
||||||
elif event.keyval == gtk.keysyms.Tab: # TAB
|
elif event.keyval == gtk.keysyms.Tab: # TAB
|
||||||
if event.state & gtk.gdk.CONTROL_MASK: # CTRL + TAB
|
if event.state & gtk.gdk.CONTROL_MASK: # CTRL + TAB
|
||||||
current = self.notebook.get_current_page()
|
current = self.notebook.get_current_page()
|
||||||
if current < (self.notebook.get_n_pages()-1):
|
if current < (self.notebook.get_n_pages()-1):
|
||||||
self.notebook.set_current_page(current + 1)
|
self.notebook.next_page()
|
||||||
else:
|
else: # traverse for ever (eg. don't stop at last tab)
|
||||||
self.notebook.set_current_page(0)
|
self.notebook.set_current_page(0)
|
||||||
elif event.keyval == gtk.keysyms.l or \
|
elif event.keyval == gtk.keysyms.l or \
|
||||||
event.keyval == gtk.keysyms.L:
|
event.keyval == gtk.keysyms.L:
|
||||||
|
|
Loading…
Reference in New Issue