equal
deleted
inserted
replaced
51 import javax.accessibility.*; |
51 import javax.accessibility.*; |
52 import sun.awt.AWTAccessor; |
52 import sun.awt.AWTAccessor; |
53 import sun.awt.AWTPermissions; |
53 import sun.awt.AWTPermissions; |
54 import sun.awt.AppContext; |
54 import sun.awt.AppContext; |
55 import sun.awt.CausedFocusEvent; |
55 import sun.awt.CausedFocusEvent; |
|
56 import sun.awt.DebugSettings; |
56 import sun.awt.SunToolkit; |
57 import sun.awt.SunToolkit; |
57 import sun.awt.util.IdentityArrayList; |
58 import sun.awt.util.IdentityArrayList; |
58 import sun.java2d.pipe.Region; |
59 import sun.java2d.pipe.Region; |
59 import sun.security.action.GetPropertyAction; |
60 import sun.security.action.GetPropertyAction; |
60 import sun.util.logging.PlatformLogger; |
61 import sun.util.logging.PlatformLogger; |
2157 * the user has typed <i>control-shift-F1</i>. If so, |
2158 * the user has typed <i>control-shift-F1</i>. If so, |
2158 * the list of child windows is dumped to {@code System.out}. |
2159 * the list of child windows is dumped to {@code System.out}. |
2159 * @param e the keyboard event |
2160 * @param e the keyboard event |
2160 */ |
2161 */ |
2161 void preProcessKeyEvent(KeyEvent e) { |
2162 void preProcessKeyEvent(KeyEvent e) { |
2162 // Dump the list of child windows to System.out. |
2163 // Dump the list of child windows to System.out if debug is enabled. |
2163 if (e.isActionKey() && e.getKeyCode() == KeyEvent.VK_F1 && |
2164 if (DebugSettings.getInstance().getBoolean("on", false)) { |
2164 e.isControlDown() && e.isShiftDown() && |
2165 if (e.isActionKey() && e.getKeyCode() == KeyEvent.VK_F1 && |
2165 e.getID() == KeyEvent.KEY_PRESSED) { |
2166 e.isControlDown() && e.isShiftDown() && |
2166 list(System.out, 0); |
2167 e.getID() == KeyEvent.KEY_PRESSED) { |
|
2168 list(System.out, 0); |
|
2169 } |
2167 } |
2170 } |
2168 } |
2171 } |
2169 |
2172 |
2170 void postProcessKeyEvent(KeyEvent e) { |
2173 void postProcessKeyEvent(KeyEvent e) { |
2171 // Do nothing |
2174 // Do nothing |