0

I have a javafx.scene.control.TextField and implemented the keyPressed(), keyReleased(), and keyTyped() methods.

These methods will be invoked by all keys except for ^ ´ `.

The problem is that the TextField adds these characters but I can't handle the input of these characters.

I think it's because these characters are no "real" characters and they are normally used in combination with vocals (like é, ì, ô, ú). But even when I "complete" the character (e.g. if I press ^ and then o, then the TextFieldwill show ô), the methods does not register the input.

Yakuhzi
  • 969
  • 6
  • 20
  • 1
    Have you tried using an event filter instead of a handler? It may allow you to catch the event before the control consumes is. – Itai Sep 24 '17 at 11:16
  • 1
    hmm i have no problem catching the " ^ ´ `." keys here. Maybe i didn't understand something. In any case if the characters you want to catch is a combination of two or more keys have you tried to catch multiple keys for example to check if the shift + 6 is pressed etc? – JKostikiadis Sep 24 '17 at 12:04
  • Possible duplicate of [*How can I eliminate dead keys on Mac OS X with international keyboard?*](https://stackoverflow.com/q/455799/230513) – trashgod Sep 24 '17 at 14:18

0 Answers0