JDK-8182572 : Numpad keys not working with JavaFX Monocle
  • Type: Bug
  • Component: javafx
  • Sub-Component: window-toolkit
  • Affected Version: 8u121
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: linux
  • CPU: x86
  • Submitted: 2017-06-17
  • Updated: 2018-09-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Description
FULL PRODUCT VERSION :


ADDITIONAL OS VERSION INFORMATION :
Raspbian (Debian Jessie)

A DESCRIPTION OF THE PROBLEM :
com.sun.glass.ui.monocle.LinuxKeyProcessor.getVirtualKeyCode() method is missing mapping for keys LinuxInput.KEY_KP0 to LinuxInput.KEY_KP9

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Input any numeric key on numpad while running JavaFX application with Monocle

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Numeric key event is received
ACTUAL -
No key event is received

REPRODUCIBILITY :
This bug can be reproduced always.

CUSTOMER SUBMITTED WORKAROUND :
Add following code to com.sun.glass.ui.monocle.LinuxKeyProcessor.getVirtualKeyCode() method

case LinuxInput.KEY_KP0: return KeyEvent.VK_NUMPAD0;
case LinuxInput.KEY_KP1: return KeyEvent.VK_NUMPAD1;
case LinuxInput.KEY_KP2: return KeyEvent.VK_NUMPAD2;
case LinuxInput.KEY_KP3: return KeyEvent.VK_NUMPAD3;
case LinuxInput.KEY_KP4: return KeyEvent.VK_NUMPAD4;
case LinuxInput.KEY_KP5: return KeyEvent.VK_NUMPAD5;
case LinuxInput.KEY_KP6: return KeyEvent.VK_NUMPAD6;
case LinuxInput.KEY_KP7: return KeyEvent.VK_NUMPAD7;
case LinuxInput.KEY_KP8: return KeyEvent.VK_NUMPAD8;
case LinuxInput.KEY_KP9: return KeyEvent.VK_NUMPAD9;


Comments
Response from submitter: ---------------------------------------------- I submitted patch to the mailing list (http://mail.openjdk.java.net/pipermail/openjfx-dev/2017-September/020818.html) ---------------------------------------------
04-10-2017

Received additional information from Submitter: ------------------------------ I have prepared fix for this problem in form of diff, where can I submit it? ------------------------------ replied submitter as below: "If you want to contribute a fix for this bug (which would be super cool!), then you'll need to follow the steps described at: http://openjdk.java.net/contribute/ in order to submit the Oracle Contributor Agreement (OCA), after which we can accept patches from you. You can find information on getting the sources and building JFX at: https://wiki.openjdk.java.net/display/OpenJFX/Building+OpenJFX You can also subscribe and join technical discussion related to OpenJFX here: http://mail.openjdk.java.net/mailman/listinfo/openjfx-dev "
29-06-2017

We don't support JavaFX running on embedded platforms, but if someone in the community wants to provide a fix for this, we might take it in a future release.
20-06-2017