diff options
author | Nikos Kouremenos <kourem@gmail.com> | 2008-02-05 19:46:05 +0300 |
---|---|---|
committer | Nikos Kouremenos <kourem@gmail.com> | 2008-02-05 19:46:05 +0300 |
commit | dea4d9f7456da7533c6faf6a53ffd6be124fb2ad (patch) | |
tree | 730cd77f877bc444f9a2252e40eddd0680adc7c8 /src/message_window.py | |
parent | e8b7778521a04e1adb99bd1e611c6a42365d5ff1 (diff) |
Merwok complained about left and right arrow on tab in chats couldn't allow him to do traversing. This patch is a almost there fix. What is missing after the new tab is focused, it steals focus [couldn't find how to fix that atm], hopefully Yann remembers nicfit's code better..
Diffstat (limited to 'src/message_window.py')
-rw-r--r-- | src/message_window.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/message_window.py b/src/message_window.py index f882b86cc..62463ac17 100644 --- a/src/message_window.py +++ b/src/message_window.py @@ -4,12 +4,12 @@ ## Vincent Hanquez <tab@snarc.org> ## Copyright (C) 2005 Yann Leboulanger <asterix@lagaule.org> ## Vincent Hanquez <tab@snarc.org> -## Nikos Kouremenos <kourem@gmail.com> ## Dimitur Kirov <dkirov@gmail.com> ## Norman Rasmussen <norman@rasmussen.co.za> ## Copyright (C) 2005-2007 Travis Shirk <travis@pobox.com> ## Copyright (C) 2006 Geobert Quach <geobert@gmail.com> ## Copyright (C) 2007 Stephan Erb <steve-e@h3c.de> +## Copyright (C) 2005-2008 Nikos Kouremenos <kourem@gmail.com> ## ## This file is part of Gajim. ## @@ -629,6 +629,9 @@ class MessageWindow(object): if (event.state & gtk.gdk.CONTROL_MASK and event.keyval in (gtk.keysyms.Page_Down, gtk.keysyms.Page_Up)): return False + # when tab itselft is selected, make sure <- and -> are allowed for navigating between tabs + if event.keyval in (gtk.keysyms.Left, gtk.keysyms.Right): + return False if isinstance(control, ChatControlBase): # we forwarded it to message textview control.msg_textview.emit('key_press_event', event) |