src/share/classes/java/awt/DefaultKeyboardFocusManager.java
Print this page
*** 806,822 ****
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));
}
}
if (!stopPostProcessing) {
postProcessKeyEvent(e);
}
--- 806,822 ----
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 = iter.next().
! postProcessKeyEvent(e);
}
}
if (!stopPostProcessing) {
postProcessKeyEvent(e);
}
*** 1057,1072 ****
}
}
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))
{
return true;
}
}
--- 1057,1072 ----
}
}
return true;
}
! java.util.List<KeyEventDispatcher> dispatchers = getKeyEventDispatchers();
if (dispatchers != null) {
! for (java.util.Iterator<KeyEventDispatcher> iter = dispatchers.iterator();
iter.hasNext(); )
{
! if (iter.next().
dispatchKeyEvent(ke))
{
return true;
}
}
*** 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);