On Fri, 17 May 2024 15:11:48 GMT, Martin Fox <m...@openjdk.org> wrote:
>> In the context of the recent discussion on the mailing list, would it be >> possible to actually detect the keyboard layout? There is a limited number >> of layouts, so in theory that should be possible. >> >> Another question - I recall on Windows there is a way to enter certain key >> using Alt codes. Does this method exist on Linux? > >> 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. > @beldenfox This is ready to integrate. Sorry for the long delay. Thanks for letting me know. I haven't been getting e-mails when my PR's are ready to integrate. And thanks for reviewing this, KeyCharacterCombinations now work reliably on all the desktop platforms. ------------- PR Comment: https://git.openjdk.org/jfx/pull/1373#issuecomment-2393795128