[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] FYI: BasicListUI fixlet
From: |
Anthony Balkissoon |
Subject: |
[cp-patches] FYI: BasicListUI fixlet |
Date: |
Thu, 28 Jul 2005 11:38:06 -0400 |
Changed KeyEvent.isShiftDown() and KeyEvent.isControlDown() to
comparisons between KeyEvent.getModifiers() and InputEvent.SHIFT_MASK
and CTRL_MASK.
Also switched the order of shift and control handling in
MouseInputHandler.mousePressed to correspond to the JDK's behaviour.
Patch attached.
2005-07-28 Anthony Balkissoon <address@hidden>
* javax/swing/plaf/basic/BasicListUI.java:
(KeyHandler.keyPressed): Replaced calls to KeyEvent.isShiftDown() and
isControlDown() with comparisons of KeyEvent.getModifiers() and
InputEvent.SHIFT_MASK and CTRL_MASK.
(MouseInputHandler.mouseClicked): Reordered SHIFT and CTRL modifier
actions to correspond to JDK. Note the JDK simply ignores other
modifiers so isShiftDown() and isControlDown() are okay for mouse
input.
-Tony
JListModifierFixes.diff
Description: Text Data