In tabbed chat window, when alt+1 2 3 key is pressed, select the corresponding tab
This commit is contained in:
parent
d2720d38e7
commit
ad61789101
|
@ -415,8 +415,13 @@ class tabbed_chat_Window:
|
|||
return 0
|
||||
|
||||
def on_chat_key_press_event(self, widget, event):
|
||||
nb = self.xml.get_widget("notebook")
|
||||
st = "1234567890"
|
||||
if event.keyval == gtk.keysyms.Escape:
|
||||
self.on_close_clicked(widget)
|
||||
elif (event.string in st) \
|
||||
and (event.state & gtk.gdk.MOD1_MASK):
|
||||
nb.set_current_page(st.index(event.string))
|
||||
|
||||
def on_button_contact_clicked(self, widget):
|
||||
"""When button contact is clicked"""
|
||||
|
|
Loading…
Reference in New Issue