Don't steal focus from components implementing yon new interface.

git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@169 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Ray Greenwell
2007-03-13 18:49:42 +00:00
parent 0777cc7591
commit 7d2c156174
@@ -44,6 +44,8 @@ import javax.swing.text.JTextComponent;
import com.samskivert.util.HashIntMap;
import com.threerings.crowd.chat.client.ChatCantStealFocus;
/**
* Handles dispatching special global key pressed and released events to
* those that care to monitor and process such things.
@@ -202,9 +204,10 @@ public class KeyDispatcher
return target.isShowing() &&
(((target instanceof JTextComponent) &&
((JTextComponent) target).isEditable()) ||
(target instanceof JComboBox) ||
(target instanceof JTable) ||
(target instanceof JRootPane));
(target instanceof JComboBox) ||
(target instanceof ChatCantStealFocus) ||
(target instanceof JTable) ||
(target instanceof JRootPane));
}
/**