On Wed, 15 May 2024 21:05:33 GMT, Andy Goryachev <ango...@openjdk.org> wrote:
> In the context of the recent discussion on the mailing list, would it be > possible to actually detect the keyboard layout? I answered this question in full on the mailing list but will provide a summary here. There's no documented way of doing this on Windows. The Mac organizes layouts based on language (for example, English), Linux organizes them based on country (so Australia, Great Britain, and the U.S. are all distinct). On all platforms there are more layouts than you think (the Mac has 5 German layouts and Linux has 20 Germany layouts) and there's no standard on how the variants are designated. > Another question - I recall on Windows there is a way to enter certain key > using Alt codes. Does this method exist on Linux? I'm not that familiar with this feature but here's my understanding. The feature isn't universal but tied to the input method system you're using. With IBus you can press Shift+Ctrl+U followed by the Unicode value followed by Enter. But if you want to use an IME with JavaFX you have to use the obsolete XIM framework instead which doesn't support this. ------------- PR Comment: https://git.openjdk.org/jfx/pull/1373#issuecomment-2117817006