[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-openjfx-dev
Subject:    Re: RFR: 8089373: Translation from character to key code is not sufficient
From:       Andy Goryachev <angorya () openjdk ! org>
Date:       2024-01-29 19:10:41
Message-ID: -_6hOpWsQ3roFRWdaM6tZvaGtQ13ygei8yvo1yZ5EXw=.60349bc8-46f3-44e7-8d06-4403cf773ba9 () github ! com
[Download RAW message or body]

On Fri, 17 Nov 2023 20:05:09 GMT, Martin Fox <mfox@openjdk.org> wrote:

> On Windows a common shortcut like Ctrl+'+' could only be invoked from the main \
> keyboard and not the numeric keypad. Toolkit.getKeyCodeForChar did not have enough \
> context to know whether it should return a result from the main keyboard or the \
> keypad. 
> This PR alters getKeyCodeForChar to pass in the code of the key the system is \
> trying to match against. Only the Windows platform actually uses this additional \
> information. 
> On the Mac the numeric keypad has always worked due to the odd way \
> getKeyCodeForChar is implemented (until PR #1209 the keypad worked more reliably \
> than the main keyboard). On Linux getKeyCodeForChar is a mess; neither the main \
> keyboard or the numeric keypad work reliably. I have an upcoming PR which should \
> make both work correctly.

will try to review this this week...

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

PR Comment: https://git.openjdk.org/jfx/pull/1289#issuecomment-1915382478


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic