src/share/classes/java/awt/DefaultKeyboardFocusManager.java

Print this page

        

*** 806,818 **** redispatchEvent(comp, e); } } } boolean stopPostProcessing = false; ! java.util.List processors = getKeyEventPostProcessors(); if (processors != null) { ! for (java.util.Iterator iter = processors.iterator(); !stopPostProcessing && iter.hasNext(); ) { stopPostProcessing = (((KeyEventPostProcessor)(iter.next())). postProcessKeyEvent(e)); } --- 806,818 ---- redispatchEvent(comp, e); } } } boolean stopPostProcessing = false; ! java.util.List<KeyEventPostProcessor> processors = getKeyEventPostProcessors(); if (processors != null) { ! for (java.util.Iterator<KeyEventPostProcessor> iter = processors.iterator(); !stopPostProcessing && iter.hasNext(); ) { stopPostProcessing = (((KeyEventPostProcessor)(iter.next())). postProcessKeyEvent(e)); }
*** 1057,1069 **** } } return true; } ! java.util.List dispatchers = getKeyEventDispatchers(); if (dispatchers != null) { ! for (java.util.Iterator iter = dispatchers.iterator(); iter.hasNext(); ) { if (((KeyEventDispatcher)(iter.next())). dispatchKeyEvent(ke)) { --- 1057,1069 ---- } } return true; } ! java.util.List<KeyEventDispatcher> dispatchers = getKeyEventDispatchers(); if (dispatchers != null) { ! for (java.util.Iterator<KeyEventDispatcher> iter = dispatchers.iterator(); iter.hasNext(); ) { if (((KeyEventDispatcher)(iter.next())). dispatchKeyEvent(ke)) {
*** 1129,1139 **** { AWTKeyStroke stroke = AWTKeyStroke.getAWTKeyStrokeForEvent(e), oppStroke = AWTKeyStroke.getAWTKeyStroke(stroke.getKeyCode(), stroke.getModifiers(), !stroke.isOnKeyRelease()); ! Set toTest; boolean contains, containsOpp; toTest = focusedComponent.getFocusTraversalKeys( KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS); contains = toTest.contains(stroke); --- 1129,1139 ---- { AWTKeyStroke stroke = AWTKeyStroke.getAWTKeyStrokeForEvent(e), oppStroke = AWTKeyStroke.getAWTKeyStroke(stroke.getKeyCode(), stroke.getModifiers(), !stroke.isOnKeyRelease()); ! Set<AWTKeyStroke> toTest; boolean contains, containsOpp; toTest = focusedComponent.getFocusTraversalKeys( KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS); contains = toTest.contains(stroke);