jdk/src/java.desktop/share/classes/java/awt/KeyboardFocusManager.java
changeset 28059 e576535359cc
parent 26749 b6598aa90114
child 28236 610561ed1847
equal deleted inserted replaced
28058:87940c838900 28059:e576535359cc
  1769      * KeyEventPostProcessor perform any necessary post-processing as part
  1769      * KeyEventPostProcessor perform any necessary post-processing as part
  1770      * of the KeyEvent's final resolution. KeyEventPostProcessors
  1770      * of the KeyEvent's final resolution. KeyEventPostProcessors
  1771      * will be notified in the order in which they were added; the current
  1771      * will be notified in the order in which they were added; the current
  1772      * KeyboardFocusManager will be notified last. Notifications will halt
  1772      * KeyboardFocusManager will be notified last. Notifications will halt
  1773      * as soon as one KeyEventPostProcessor returns <code>true</code> from its
  1773      * as soon as one KeyEventPostProcessor returns <code>true</code> from its
  1774      * <code>postProcessKeyEvent</code> method. There is no limit to the the
  1774      * <code>postProcessKeyEvent</code> method. There is no limit to the
  1775      * total number of KeyEventPostProcessors that can be added, nor to the
  1775      * total number of KeyEventPostProcessors that can be added, nor to the
  1776      * number of times that a particular KeyEventPostProcessor instance can be
  1776      * number of times that a particular KeyEventPostProcessor instance can be
  1777      * added.
  1777      * added.
  1778      * <p>
  1778      * <p>
  1779      * If a null post-processor is specified, no action is taken and no
  1779      * If a null post-processor is specified, no action is taken and no
  2664                      * WARNING: This is based on DKFM's logic solely!
  2664                      * WARNING: This is based on DKFM's logic solely!
  2665                      *
  2665                      *
  2666                      * We allow to trigger restoreFocus() in the dispatching process
  2666                      * We allow to trigger restoreFocus() in the dispatching process
  2667                      * only if we have the last request to dispatch. If the last request
  2667                      * only if we have the last request to dispatch. If the last request
  2668                      * fails, focus will be restored to either the component of the last
  2668                      * fails, focus will be restored to either the component of the last
  2669                      * previously succeeded request, or to to the focus owner that was
  2669                      * previously succeeded request, or to the focus owner that was
  2670                      * before this clearing process.
  2670                      * before this clearing process.
  2671                      */
  2671                      */
  2672                     if (!iter.hasNext()) {
  2672                     if (!iter.hasNext()) {
  2673                         disableRestoreFocus = false;
  2673                         disableRestoreFocus = false;
  2674                     }
  2674                     }