MCPcopy Index your code
hub / github.com/processing/processing / getKeyChar

Method getKeyChar

core/src/processing/javafx/PSurfaceFX.java:959–1060  ·  view source on GitHub ↗
(KeyEvent fxEvent)

Source from the content-addressed store, hash-verified

957
958
959 @SuppressWarnings("deprecation")
960 private char getKeyChar(KeyEvent fxEvent) {
961 KeyCode kc = fxEvent.getCode();
962
963 // Overriding chars for some
964 // KEY_PRESSED and KEY_RELEASED events
965 switch (kc) {
966 case UP:
967 case KP_UP:
968 case DOWN:
969 case KP_DOWN:
970 case LEFT:
971 case KP_LEFT:
972 case RIGHT:
973 case KP_RIGHT:
974 case ALT:
975 case ALT_GRAPH:
976 case CONTROL:
977 case SHIFT:
978 case CAPS:
979 case META:
980 case WINDOWS:
981 case CONTEXT_MENU:
982 case HOME:
983 case PAGE_UP:
984 case PAGE_DOWN:
985 case END:
986 case PAUSE:
987 case PRINTSCREEN:
988 case INSERT:
989 case NUM_LOCK:
990 case SCROLL_LOCK:
991 case F1:
992 case F2:
993 case F3:
994 case F4:
995 case F5:
996 case F6:
997 case F7:
998 case F8:
999 case F9:
1000 case F10:
1001 case F11:
1002 case F12:
1003 return PConstants.CODED;
1004 case ENTER:
1005 return '\n';
1006 case DIVIDE:
1007 return '/';
1008 case MULTIPLY:
1009 return '*';
1010 case SUBTRACT:
1011 return '-';
1012 case ADD:
1013 return '+';
1014 case NUMPAD0:
1015 return '0';
1016 case NUMPAD1:

Callers 14

fxKeyEventMethod · 0.95
nativeKeyEventMethod · 0.80
nativeKeyEventMethod · 0.80
keyTypedMethod · 0.80
isMnemonicMethod · 0.80
keyPressedMethod · 0.80
handleGrabActionMethod · 0.80
keyTypedMethod · 0.80
keyTypedMethod · 0.80
keyTypedMethod · 0.80
handlePressedMethod · 0.80
handleTypedMethod · 0.80

Calls 2

getCodeMethod · 0.80
startsWithMethod · 0.80

Tested by

no test coverage detected