Changeset 7639 in josm
- Timestamp:
- 2014-10-20T19:43:06+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/util/AdvancedKeyPressDetector.java
r7633 r7639 195 195 private boolean isFocusInMainWindow() { 196 196 Component focused = KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner(); 197 return SwingUtilities.getWindowAncestor(focused) instanceof JFrame;197 return focused != null && SwingUtilities.getWindowAncestor(focused) instanceof JFrame; 198 198 } 199 199 }
Note:
See TracChangeset
for help on using the changeset viewer.