<div dir="auto">Hi Johan,<div dir="auto"><br></div><div dir="auto">It might vary be platform. Which one are you using? (Windows, Mac, Linux).</div><div dir="auto"><br></div><div dir="auto">Try disabling IME (Input Method Editor) and see it it works.</div><div dir="auto"><br></div><div dir="auto">- Thiago </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Em ter., 24 de set. de 2024 11:51, Johan Corveleyn <<a href="mailto:jcorvel@gmail.com">jcorvel@gmail.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
(This is my first post here, hope I'm following the right path)<br>
<br>
It seems JavaFX TextFields (and friends) do not automatically convert<br>
<dead key>+<space> into simply <dead key character>. They make it into<br>
<dead key character>+<space>, which is very atypical. I would consider<br>
this behavior a bug, since it is different from any editor I know (and<br>
makes it very hard to enter a dead key character on its own). We ran<br>
into this with Java 8, I also reproduced it with openjdk 21 + openjfx<br>
23.<br>
<br>
For instance if in a JavaFX TextField I type a '^' keystroke, it waits<br>
for the next keystroke (which is normal since it's a dead key,<br>
possibly followed by a character on which to put the '^'). But if I<br>
then type <space> I expect a simple '^' to appear. Instead, in JavaFX,<br>
'^ ' appears. This does not happen in Swing, nor in any editor or<br>
shell or ...<br>
<br>
Background context: a user of our JavaFX application couldn't<br>
authenticate with their password (typed in a PasswordField). After an<br>
awful lot of troubleshooting we found that they used a '^' in their<br>
password. Of course the user didn't notice that after typing ^+space<br>
two dots appeared in the PasswordField. Now that user knows they have<br>
to backspace after typing ^+space ...<br>
<br>
I suppose inserting a Swing JPasswordField in our JavaFX app would<br>
work around this issue, but ... isn't there a better solution?<br>
Shouldn't this be regarded as a bug?<br>
<br>
-- <br>
Johan<br>
</blockquote></div>