[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] FYI: 2 BasicTableUI patches
From: |
Anthony Balkissoon |
Subject: |
[cp-patches] FYI: 2 BasicTableUI patches |
Date: |
Tue, 26 Jul 2005 16:22:21 -0400 |
First one simply implements CTRL-Space action (toggle). Second one
replaces calls to KeyEvent.isControlDown() and isShiftDown() with
comparisons between KeyEvent.getModifiers() and InputEvent.SHIFT_MASK
and CTRL_MASK. This way we ignore invalid modifiers for events without
explicitly writing in which modifier keys are up and which are down for
each event.
Patches attached.
2005-07-26 Anthony Balkissoon <address@hidden>
* javax/swing/plaf/basic/BasicTableUI.java:
(KeyHandler.keyPressed): Implemented CTRL-SPACE key action.
2005-07-26 Anthony Balkissoon <address@hidden>
* javax/swing/plaf/basic/BasicTableUI.java:
(KeyHandler.keyPressed): Replaced calls to KeyEvent.isShiftDown() and
isControlDown() with mask comparisons of KeyEvent.getModifiers() and
InputEvent.SHIFT_MASK and CTRL_MASK. This makes it easier to ignore
invalid modifiers.
-Tony
JTableModifersFix.diff
Description: Text Data
JTableCtrlSpace.diff
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] FYI: 2 BasicTableUI patches,
Anthony Balkissoon <=