(KeyEvent fxEvent)
| 940 | |
| 941 | |
| 942 | @SuppressWarnings("deprecation") |
| 943 | private int getKeyCode(KeyEvent fxEvent) { |
| 944 | if (fxEvent.getEventType() == KeyEvent.KEY_TYPED) { |
| 945 | return 0; |
| 946 | } |
| 947 | |
| 948 | KeyCode kc = fxEvent.getCode(); |
| 949 | switch (kc) { |
| 950 | case ALT_GRAPH: |
| 951 | return PConstants.ALT; |
| 952 | default: |
| 953 | break; |
| 954 | } |
| 955 | return kc.impl_getCode(); |
| 956 | } |
| 957 | |
| 958 | |
| 959 | @SuppressWarnings("deprecation") |