Re: Dead keys followed by space

2024-09-27 Thread Martin Fox
I don’t think a TextFormatter would work. The formatter would just see a caret arrive and then a space character. It would look just like the user typed those characters separately. The unexpected sequence is: - a PRESSED event arrives for the SPACE key - a TYPED event arrives for the dead key c

Re: Dead keys followed by space

2024-09-27 Thread Thiago Milczarek Sayão
Johan, I guess you could use a TextFormatter<> to remove the extra space when there's a dead key character before. It would work as textField.setTextFormatter(new PasswordTextFilter()) public class PasswordTextFilter implements UnaryOperator { @Override public TextFormatter.Change apply

Re: Dead keys followed by space

2024-09-27 Thread Johan Corveleyn
On Thu, Sep 26, 2024 at 10:37 AM Johan Corveleyn wrote: > > Thanks, and thank you Martin for filing the issue > https://bugs.openjdk.org/browse/JDK-8340982. I'll try to create an account on > openjdk.org to be able to watch the issue :-). Seems it's not that easy to get an account on bugs.openj

Re: Dead keys followed by space

2024-09-26 Thread John Hendrikx
For some reason mails on the openjfx-dev mailinglist coming from mar...@martinfox.com are not coming through to me I have the same problem. It sometimes takes a while, and sometimes they never get through :/  It may indeed by Gmail, as I use that as well for the mailinglist. --John On 26/09

Re: Dead keys followed by space

2024-09-26 Thread Johan Corveleyn
Thanks, and thank you Martin for filing the issue https://bugs.openjdk.org/browse/JDK-8340982. I'll try to create an account on openjdk.org to be able to watch the issue :-). Tangentially: For some reason mails on the openjfx-dev mailinglist coming from mar...@martinfox.com are not coming through

Re: Dead keys followed by space

2024-09-25 Thread Martin Fox
Johan, I’ve entered a bug, https://bugs.openjdk.org/browse/JDK-8340982. In general if you type a dead key followed by a character that can’t combine with it you get two characters. For example, if you type a dead key circumflex followed by a ‘q’ you should see “^q”. The Space character is an ex

Re: Dead keys followed by space

2024-09-25 Thread Thiago Milczarek Sayão
Johan, Trust Martin, as I know nothing about Windows :) Sorry for misleading you on the IME subject. Em qua., 25 de set. de 2024 às 13:24, Martin Fox escreveu: > Johan, > > Thanks for providing all the details. It does sound like a bug. I will > take a look. > > Since this is Windows altering t

Re: Dead keys followed by space

2024-09-25 Thread Martin Fox
Johan, Thanks for providing all the details. It does sound like a bug. I will take a look. Since this is Windows altering the IME setup probably won’t have any effect. On Mac and Linux dead keys are delivered through the IME pathway and are presented to JavaFX as InputMethod events. On Windows

Re: Dead keys followed by space

2024-09-25 Thread Kevin Rushforth
I would not recommend internal APIs, unless someone wants to build JavaFX to help diagnose it. In any case it sounds like Johan has discovered a bug -- at least on Windows -- in the key handler for dead keys. We should test this on macOS and Linux as well.  -- Kevin On 9/25/2024 8:14 AM, Th

Re: Dead keys followed by space

2024-09-25 Thread Thiago Milczarek Sayão
Johan, It's an internal API, but we can use it for testing purposes (I'm not sure if there's a public API for that). SceneHelper.enableInputMethodEvents(scene, false); IME is used for entering complex characters in some languages such as Chinese, Korean, Japanese, etc. On Linux, setting the keybo

Re: Dead keys followed by space

2024-09-25 Thread Johan Corveleyn
Hi Thiago, Thank you for your answer. I am experiencing this issue on Windows (Windows 10 and 11). Now, it dawns on me that: - I have a QWERTY keyboard (standard US layout). - I have my keyboard layout setting in Windows configured to "US International". That way the keys for ~, ^, ', " become "d

Re: Dead keys followed by space

2024-09-24 Thread Thiago Milczarek Sayão
Hi Johan, It might vary be platform. Which one are you using? (Windows, Mac, Linux). Try disabling IME (Input Method Editor) and see it it works. - Thiago Em ter., 24 de set. de 2024 11:51, Johan Corveleyn escreveu: > Hi, > > (This is my first post here, hope I'm following the right path) > >