Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8119340

Gtk: KEY_TYPED event for ENTER does not have character on Linux

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • fx2.1
    • fx2.1
    • javafx
    • None
    • GNU/Linux, X

      Typing ENTER yields a KEY_TYPED event (in addition to KEY_PRESSED and KEY_RELEASED events).
      For some reason on Linux getCharacter() returns "\0" but should return "\r":

      KeyEvent [source = WebView@19d2bed, target = WebView@19d2bed, eventType = KEY_TYPED, consumed = false, character = \000, text = , code = UNDEFINED]

      This used to work, but broke relatively recently (in the November time-frame, probably).

      In contrast, on Windows I get:

      KeyEvent [source = WebView@135dd72, target = WebView@135dd72, eventType = KEY_TYPED, consumed = false, character = \r, text = , code = UNDEFINED]

      I can debug this myself, but if someone has an idea where the problem might be that would probably be more efficient. Or, if it would be helpful, I can create a stand-alone test-case.

            pbothner Per Bothner (Inactive)
            pbothner Per Bothner (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: