aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYana Stamcheva <yana@jitsi.org>2013-01-19 11:04:55 +0000
committerYana Stamcheva <yana@jitsi.org>2013-01-19 11:04:55 +0000
commit8a1075ed1effa0fec72cb46e3388cb33cd570c9e (patch)
treed8a3e4670bf6f51b33e3033058572c2a6b0ae451 /src
parentdc36adcbe859f5b223c0b766a29d95ff6e57ee35 (diff)
downloadjitsi-8a1075ed1effa0fec72cb46e3388cb33cd570c9e.zip
jitsi-8a1075ed1effa0fec72cb46e3388cb33cd570c9e.tar.gz
jitsi-8a1075ed1effa0fec72cb46e3388cb33cd570c9e.tar.bz2
Fixes the chat menu bar keyboard navigation. Fix provided by Markus KilÄs on dev mailing list (subject: "Chat window menu bar can not be navigated using keyboard").
Diffstat (limited to 'src')
-rw-r--r--src/net/java/sip/communicator/impl/gui/main/chat/ChatWindow.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/net/java/sip/communicator/impl/gui/main/chat/ChatWindow.java b/src/net/java/sip/communicator/impl/gui/main/chat/ChatWindow.java
index 929e0de..28dffb2 100644
--- a/src/net/java/sip/communicator/impl/gui/main/chat/ChatWindow.java
+++ b/src/net/java/sip/communicator/impl/gui/main/chat/ChatWindow.java
@@ -1258,11 +1258,18 @@ public class ChatWindow
if(getCurrentChat() == null)
return false;
-
+
ChatWritePanel chatWritePanel
= getCurrentChat().getChatWritePanel();
JEditorPane chatWriteEditor = chatWritePanel.getEditorPane();
+ // Don't re-dispatch any events if the menu is active. Fixes the
+ // navigation in the menu.
+ if (menuBar.isSelected())
+ {
+ return false;
+ }
+
if (keyManager.getFocusOwner() != null
&& !chatWritePanel.isFocusOwner())
{