Dead keys followed by space
Thiago Milczarek Sayão
thiago.sayao at gmail.com
Fri Sep 27 13:18:33 UTC 2024
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<TextFormatter.Change> {
@Override
public TextFormatter.Change apply(final TextFormatter.Change aT) {
//logic to ignore the space if there's a dead key before
}
}
Em sex., 27 de set. de 2024 às 09:42, Johan Corveleyn <jcorvel at gmail.com>
escreveu:
> On Thu, Sep 26, 2024 at 10:37 AM Johan Corveleyn <jcorvel at gmail.com>
> 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.openjdk.org, so
> never mind that ... I'll check in on the issue from time to time (and
> of course I keep an eye on this mailinglist anyway). I'm not expecting
> this to be fixed immediately of course, I suppose everyone here has
> lots of things on their plate, and lots of other priorities; and I
> have little to offer as contribution myself at the moment.
>
> In the meantime: does anybody have an idea for an elegant workaround
> for this (to have a TextField and PasswordField where ^+<space> just
> yields '^' on Windows + US International keyboard)? Injecting a Swing
> component for this is an option, but I'd like to know if there are
> others.
>
> Thanks,
> --
> Johan
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20240927/6614922d/attachment-0001.htm>
More information about the openjfx-dev
mailing list