RFR: 8329756: [macos] "javax/swing/JTable/KeyBoardNavigation.java" fail because most combinations of navigational keys with the Ctrl key do not work

Tejesh R tr at openjdk.org
Mon Jul 29 09:02:34 UTC 2024


On Mon, 29 Jul 2024 08:23:12 GMT, Abhishek Kumar <abhiscxk at openjdk.org> wrote:

>> Mismatch in key combinations, I have taken native macos Numbers application as reference to verify. Have added `Ctrl-Shift Left/Right` action keys similar to `Ctrl-Shift UP/DOWN` which would be expected functionality. I've removed those test instructions which are not applicable/implemented/not working in Macos keyboard navigation.
>
> src/java.desktop/macosx/classes/com/apple/laf/AquaKeyBindings.java line 393:
> 
>> 391:             "ctrl shift DOWN", "selectLastRowExtendSelection",
>> 392:             "ctrl shift RIGHT", "selectLastColumnExtendSelection",
>> 393:             "ctrl shift LEFT", "selectFirstColumnExtendSelection"
> 
> any specific reason `ctrl shift left / right` is not there for Windows and Linux ?

It is there for Windows and Linux too. Its according to the native, in windows it extends to one cell left/right. In Linux there is a miss-match between native `Libre` and swing, might have to change that. I have updated as per Macos native side, where I took `Numbers` as reference.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/20331#discussion_r1694857467


More information about the client-libs-dev mailing list