Fix tab switching with ctrl+page up and ctrl+page down.

This commit is contained in:
Tomasz Miąsko 2017-01-24 12:41:10 +01:00
parent ffeeb8f9f5
commit 2e133d2572
1 changed files with 1 additions and 1 deletions

View File

@ -401,7 +401,7 @@ class MessageWindow(object):
elif keyval in (Gdk.KEY_Page_Up, Gdk.KEY_Page_Down):
# CTRL + PageUp | PageDown
# Create event and send it to notebook
event = Gdk.Event(Gdk.EventType.KEY_PRESS)
event = Gdk.Event.new(Gdk.EventType.KEY_PRESS)
event.window = self.window.get_window()
event.time = int(time.time())
event.state = Gdk.ModifierType.CONTROL_MASK