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").

cusax-fix
Yana Stamcheva 13 years ago
parent dc36adcbe8
commit 8a1075ed1e

@ -1258,11 +1258,18 @@ public boolean dispatchKeyEvent(KeyEvent e)
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())
{

Loading…
Cancel
Save