Java Code Examples for java.awt.event.KeyEvent#VK_G
The following examples show how to use
java.awt.event.KeyEvent#VK_G .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ShortcutListener.java From jeddict with Apache License 2.0 | 5 votes |
@Override public void keyPressed(KeyEvent e) { super.keyPressed(e); if (e.isControlDown() == true) { if (e.getKeyCode() == KeyEvent.VK_L) { SQLEditorUtil.openEditor(file, ((DBMapping) file.getModelerScene().getBaseElementSpec()).getSQL()); }else if (e.getKeyCode() == KeyEvent.VK_B) { JSONBUtil.openJSONBViewer(file.getParentFile()); } else if (e.getKeyCode() == KeyEvent.VK_G) { JPAModelerUtil.generateSourceCode(file.getParentFile()); } } }
Example 2
Source File: ShortcutListener.java From jeddict with Apache License 2.0 | 5 votes |
@Override public void keyPressed(KeyEvent e) { super.keyPressed(e); if (e.isControlDown() == true) { if (e.getKeyCode() == KeyEvent.VK_G) { JPAModelerUtil.generateSourceCode(file); } else if (e.getKeyCode() == KeyEvent.VK_D) { DBUtil.openDBModeler(file); } else if (e.getKeyCode() == KeyEvent.VK_B) { JSONBUtil.openJSONBViewer(file); } } }
Example 3
Source File: ShortcutListener.java From jeddict with Apache License 2.0 | 5 votes |
@Override public void keyPressed(KeyEvent e) { super.keyPressed(e); if (e.isControlDown() == true) { if (e.getKeyCode() == KeyEvent.VK_D) { DBUtil.openDBModeler(file.getParentFile()); } else if (e.getKeyCode() == KeyEvent.VK_G) { JPAModelerUtil.generateSourceCode(file.getParentFile()); } } }
Example 4
Source File: MissingCharsKorean.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
private static boolean setKeyInput(int iCount) { boolean inputSet = true; switch(iCount) { case 0: // Input Korean q (#12610) /(#47) expectedResults = new int[]{ 12610, 47 }; inKeyCodes = new int[][] { {KeyEvent.VK_Q}, {KeyEvent.VK_SLASH} }; break; case 1: // Input Korean q (#12610) /(#47) gh (#54840) \(#92) expectedResults = new int[]{ 12610, 47, 54840, 92 }; inKeyCodes = new int[][] { {KeyEvent.VK_Q}, {KeyEvent.VK_SLASH}, {KeyEvent.VK_G}, {KeyEvent.VK_H}, {KeyEvent.VK_BACK_SLASH} }; break; case 2: // Input Korean q (#12610) /(#47) ghq (#54857) \(#92) expectedResults = new int[]{ 12610, 47, 54857, 92 }; inKeyCodes = new int[][] { {KeyEvent.VK_Q}, {KeyEvent.VK_SLASH}, {KeyEvent.VK_G}, {KeyEvent.VK_H}, {KeyEvent.VK_Q}, {KeyEvent.VK_BACK_SLASH} }; break; case 3: // Input Korean q (#12610) /(#47) gh (#54840) \(#92) expectedResults = new int[]{ 12610, 47, 54840, 92 }; inKeyCodes = new int[][] { {KeyEvent.VK_Q}, {KeyEvent.VK_SLASH}, {KeyEvent.VK_G}, {KeyEvent.VK_H}, {KeyEvent.VK_Q}, {KeyEvent.VK_BACK_SPACE}, {KeyEvent.VK_BACK_SLASH} }; break; case 4: // Input Korean q (#12610) /(#47) g (#12622) \(#92) expectedResults = new int[]{ 12610, 47, 12622, 92 }; inKeyCodes = new int[][] { {KeyEvent.VK_Q}, {KeyEvent.VK_SLASH}, {KeyEvent.VK_G}, {KeyEvent.VK_H}, {KeyEvent.VK_Q}, {KeyEvent.VK_BACK_SPACE}, {KeyEvent.VK_BACK_SPACE}, {KeyEvent.VK_BACK_SLASH} }; break; default: inputSet = false; break; } return inputSet; }
Example 5
Source File: GridAction.java From PIPE with MIT License | 4 votes |
public GridAction(PipeApplicationController applicationController) { super("Cycle grid", "Change the grid size (alt-G)", KeyEvent.VK_G, InputEvent.ALT_DOWN_MASK); this.applicationController = applicationController; }
Example 6
Source File: Commander.java From Scripts with GNU General Public License v3.0 | 4 votes |
@Override public void keyPressed(final KeyEvent ke) { final int key = ke.getKeyCode(); final Object source = ke.getSource(); final boolean meta = (ke.getModifiers() & Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()) != 0; final boolean metaShift = meta && ke.isShiftDown(); // Close if Esc, Ctrl+W or Cmd+W if (key == KeyEvent.VK_ESCAPE || (key == KeyEvent.VK_W && meta)) { quit(); // Trigger Menu accelerators } else if (metaShift) { if (key == KeyEvent.VK_C) // Enter/Exit Console toggleConsoleMode(); else if (key == KeyEvent.VK_G) // Go To... changeDirectory(""); else if (!isConsoleMode() && key == KeyEvent.VK_R) // Reveal Path Utils.revealFile(path); } else if (meta) { if (key == KeyEvent.VK_L) { prompt.requestFocusInWindow(); prompt.selectAll(); } else if (key == KeyEvent.VK_B) { activateTable(); } else if (key == KeyEvent.VK_COMMA) { showOptionsDialog(); } else if (key == KeyEvent.VK_S) { saveQuery(); } else if (!isConsoleMode() && key == KeyEvent.VK_D) { addBookmark(); } else if (!isConsoleMode() && key == KeyEvent.VK_P) { printList(); } else if (!isConsoleMode() && key == KeyEvent.VK_R) { resetFileList("Contents reloaded..."); } } else if (source == prompt) { // Up or down arrows pressed in prompt: Move the focus to list if (key == KeyEvent.VK_UP || key == KeyEvent.VK_DOWN) { activateTable(); } } else if (source == table) { // Focus in list and left arrow key: move up in directory hierarchy if (key == KeyEvent.VK_LEFT) { selectParentDirectory(path); setSelectedItem(table.getSelectedRow()); // Focus in list and right arrow key: List sub-directory } else if (key == KeyEvent.VK_RIGHT) { setSelectedItem(table.getSelectedRow()); if (isFolder(selectedItem)) selectSubDirectory(selectedItem); // Focus in list and enter: Open selected item } else if (key == KeyEvent.VK_ENTER) { ke.consume(); setSelectedItem(table.getSelectedRow()); openItem(selectedItem); // Focus in list and backspace: Switch focus back to prompt } else if (key == KeyEvent.VK_BACK_SPACE) { prompt.requestFocusInWindow(); prompt.selectAll(); // Focus in list and up/down arrow key: Loop through list } else if (key == KeyEvent.VK_UP) { if (table.getSelectedRow() == 0) table.setRowSelectionInterval(tableModel.getRowCount() - 1, tableModel.getRowCount() - 1); } else if (key == KeyEvent.VK_DOWN) { if (table.getSelectedRow() == tableModel.getRowCount() - 1) table.setRowSelectionInterval(0, 0); } } }
Example 7
Source File: View2D.java From energy2d with GNU Lesser General Public License v3.0 | 4 votes |
private void processKeyReleased(KeyEvent e) { if (runHeatingThread) { if (e.getKeyCode() == KeyEvent.VK_SHIFT) { cooling = false; } } switch (e.getKeyCode()) { case KeyEvent.VK_DELETE: case KeyEvent.VK_BACK_SPACE: // this is different than cut() in that it doesn't create a copy for pasting if (selectedManipulable != null) { if (JOptionPane.showConfirmDialog(this, "Are you sure you want to delete the selected object?", "Delete Object", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE) == JOptionPane.YES_OPTION) { undoManager.addEdit(new UndoRemoveManipulable(this)); notifyManipulationListeners(selectedManipulable, ManipulationEvent.DELETE); setSelectedManipulable(null); } } else { if (showGraph) { if (JOptionPane.showConfirmDialog(this, "Are you sure you want to erase the graph?", "Erase Graph", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE) == JOptionPane.YES_OPTION) { eraseGraph(); } } } break; case KeyEvent.VK_R: notifyManipulationListeners(null, runToggle ? ManipulationEvent.STOP : ManipulationEvent.RUN); break; case KeyEvent.VK_T: notifyManipulationListeners(null, ManipulationEvent.RESET); break; case KeyEvent.VK_L: notifyManipulationListeners(null, ManipulationEvent.RELOAD); break; case KeyEvent.VK_S: // avoid conflict with the save keystroke if (!e.isControlDown() && !e.isMetaDown() && !e.isAltDown()) notifyManipulationListeners(null, ManipulationEvent.SUN_SHINE); break; case KeyEvent.VK_Q: notifyManipulationListeners(null, ManipulationEvent.SUN_ANGLE_INCREASE); break; case KeyEvent.VK_W: notifyManipulationListeners(null, ManipulationEvent.SUN_ANGLE_DECREASE); break; case KeyEvent.VK_G: showGraph = !showGraph; notifyGraphListeners(showGraph ? GraphEvent.GRAPH_OPENED : GraphEvent.GRAPH_CLOSED); break; case KeyEvent.VK_ESCAPE: // allow the app to shut down when in full screen mode Object r = getClientProperty("close_full_screen"); if (r instanceof Runnable) ((Runnable) r).run(); break; } repaint(); tipText = null; // e.consume();//don't call, or this stops key binding }
Example 8
Source File: MissingCharsKorean.java From jdk8u_jdk with GNU General Public License v2.0 | 4 votes |
private static boolean setKeyInput(int iCount) { boolean inputSet = true; switch(iCount) { case 0: // Input Korean q (#12610) /(#47) expectedResults = new int[]{ 12610, 47 }; inKeyCodes = new int[][] { {KeyEvent.VK_Q}, {KeyEvent.VK_SLASH} }; break; case 1: // Input Korean q (#12610) /(#47) gh (#54840) \(#92) expectedResults = new int[]{ 12610, 47, 54840, 92 }; inKeyCodes = new int[][] { {KeyEvent.VK_Q}, {KeyEvent.VK_SLASH}, {KeyEvent.VK_G}, {KeyEvent.VK_H}, {KeyEvent.VK_BACK_SLASH} }; break; case 2: // Input Korean q (#12610) /(#47) ghq (#54857) \(#92) expectedResults = new int[]{ 12610, 47, 54857, 92 }; inKeyCodes = new int[][] { {KeyEvent.VK_Q}, {KeyEvent.VK_SLASH}, {KeyEvent.VK_G}, {KeyEvent.VK_H}, {KeyEvent.VK_Q}, {KeyEvent.VK_BACK_SLASH} }; break; case 3: // Input Korean q (#12610) /(#47) gh (#54840) \(#92) expectedResults = new int[]{ 12610, 47, 54840, 92 }; inKeyCodes = new int[][] { {KeyEvent.VK_Q}, {KeyEvent.VK_SLASH}, {KeyEvent.VK_G}, {KeyEvent.VK_H}, {KeyEvent.VK_Q}, {KeyEvent.VK_BACK_SPACE}, {KeyEvent.VK_BACK_SLASH} }; break; case 4: // Input Korean q (#12610) /(#47) g (#12622) \(#92) expectedResults = new int[]{ 12610, 47, 12622, 92 }; inKeyCodes = new int[][] { {KeyEvent.VK_Q}, {KeyEvent.VK_SLASH}, {KeyEvent.VK_G}, {KeyEvent.VK_H}, {KeyEvent.VK_Q}, {KeyEvent.VK_BACK_SPACE}, {KeyEvent.VK_BACK_SPACE}, {KeyEvent.VK_BACK_SLASH} }; break; default: inputSet = false; break; } return inputSet; }
Example 9
Source File: KeyCodeToChar.java From Repeat with Apache License 2.0 | 4 votes |
private static String getUpperCaseAlphaChar(int code) { switch (code) { case KeyEvent.VK_Q: return "Q"; case KeyEvent.VK_W: return "W"; case KeyEvent.VK_E: return "E"; case KeyEvent.VK_R: return "R"; case KeyEvent.VK_T: return "T"; case KeyEvent.VK_Y: return "Y"; case KeyEvent.VK_U: return "U"; case KeyEvent.VK_I: return "I"; case KeyEvent.VK_O: return "O"; case KeyEvent.VK_P: return "P"; case KeyEvent.VK_A: return "A"; case KeyEvent.VK_S: return "S"; case KeyEvent.VK_D: return "D"; case KeyEvent.VK_F: return "F"; case KeyEvent.VK_G: return "G"; case KeyEvent.VK_H: return "H"; case KeyEvent.VK_J: return "J"; case KeyEvent.VK_K: return "K"; case KeyEvent.VK_L: return "L"; case KeyEvent.VK_Z: return "Z"; case KeyEvent.VK_X: return "X"; case KeyEvent.VK_C: return "C"; case KeyEvent.VK_V: return "V"; case KeyEvent.VK_B: return "B"; case KeyEvent.VK_N: return "N"; case KeyEvent.VK_M: return "M"; default: return ""; } }
Example 10
Source File: KeyCodeToChar.java From Repeat with Apache License 2.0 | 4 votes |
private static String getLowerCaseAlphaChar(int code) { switch (code) { case KeyEvent.VK_Q: return "q"; case KeyEvent.VK_W: return "w"; case KeyEvent.VK_E: return "e"; case KeyEvent.VK_R: return "r"; case KeyEvent.VK_T: return "t"; case KeyEvent.VK_Y: return "y"; case KeyEvent.VK_U: return "u"; case KeyEvent.VK_I: return "i"; case KeyEvent.VK_O: return "o"; case KeyEvent.VK_P: return "p"; case KeyEvent.VK_A: return "a"; case KeyEvent.VK_S: return "s"; case KeyEvent.VK_D: return "d"; case KeyEvent.VK_F: return "f"; case KeyEvent.VK_G: return "g"; case KeyEvent.VK_H: return "h"; case KeyEvent.VK_J: return "j"; case KeyEvent.VK_K: return "k"; case KeyEvent.VK_L: return "l"; case KeyEvent.VK_Z: return "z"; case KeyEvent.VK_X: return "x"; case KeyEvent.VK_C: return "c"; case KeyEvent.VK_V: return "v"; case KeyEvent.VK_B: return "b"; case KeyEvent.VK_N: return "n"; case KeyEvent.VK_M: return "m"; default: return ""; } }
Example 11
Source File: Robot.java From xnx3 with Apache License 2.0 | 4 votes |
/** * 将字符型转换为按键码,可直接使用 {@link #press(int)}调用 * @param key 字符型文字,包含 0~9 a~z . * @return 按键码 */ public int StringToKey(String key){ switch (key) { case "a": return KeyEvent.VK_A; case "b": return KeyEvent.VK_B; case "c": return KeyEvent.VK_C; case "d": return KeyEvent.VK_D; case "e": return KeyEvent.VK_E; case "f": return KeyEvent.VK_F; case "g": return KeyEvent.VK_G; case "h": return KeyEvent.VK_H; case "i": return KeyEvent.VK_I; case "j": return KeyEvent.VK_J; case "k": return KeyEvent.VK_K; case "l": return KeyEvent.VK_L; case "m": return KeyEvent.VK_M; case "n": return KeyEvent.VK_N; case "o": return KeyEvent.VK_O; case "p": return KeyEvent.VK_P; case "q": return KeyEvent.VK_Q; case "r": return KeyEvent.VK_R; case "s": return KeyEvent.VK_S; case "t": return KeyEvent.VK_T; case "u": return KeyEvent.VK_U; case "v": return KeyEvent.VK_V; case "w": return KeyEvent.VK_W; case "x": return KeyEvent.VK_X; case "y": return KeyEvent.VK_Y; case "z": return KeyEvent.VK_Z; case "0": return KeyEvent.VK_0; case "1": return KeyEvent.VK_1; case "2": return KeyEvent.VK_2; case "3": return KeyEvent.VK_3; case "4": return KeyEvent.VK_4; case "5": return KeyEvent.VK_5; case "6": return KeyEvent.VK_6; case "7": return KeyEvent.VK_7; case "8": return KeyEvent.VK_8; case "9": return KeyEvent.VK_9; case ".": return KeyEvent.VK_PERIOD; default: break; } return 0; }
Example 12
Source File: SelectionTool.java From workcraft with MIT License | 4 votes |
@Override public boolean keyPressed(GraphEditorKeyEvent e) { GraphEditor editor = e.getEditor(); switch (e.getKeyCode()) { case KeyEvent.VK_ESCAPE: if (isDragging()) { cancelDrag(editor); } else { cancelSelection(editor); } return true; case KeyEvent.VK_PAGE_UP: changeLevelUp(editor); return true; case KeyEvent.VK_PAGE_DOWN: changeLevelDown(editor); return true; } if (!e.isMenuKeyDown() && !e.isShiftKeyDown()) { switch (e.getKeyCode()) { case KeyEvent.VK_LEFT: offsetSelection(editor, -1, 0); return true; case KeyEvent.VK_RIGHT: offsetSelection(editor, 1, 0); return true; case KeyEvent.VK_UP: offsetSelection(editor, 0, -1); return true; case KeyEvent.VK_DOWN: offsetSelection(editor, 0, 1); return true; } } if (enablePaging && e.isAltKeyDown() && !e.isMenuKeyDown()) { switch (e.getKeyCode()) { case KeyEvent.VK_G: if (e.isShiftKeyDown()) { ungroupSelection(editor); } else { pageSelection(editor); } return true; } } if (enableGroupping && e.isMenuKeyDown() && !e.isAltKeyDown()) { switch (e.getKeyCode()) { case KeyEvent.VK_G: if (e.isShiftKeyDown()) { ungroupSelection(editor); } else { groupSelection(editor); } return true; } } if (e.isMenuKeyDown() && !e.isAltKeyDown()) { switch (e.getKeyCode()) { case KeyEvent.VK_V: Point2D pastePosition = TransformHelper.snapP5(currentMousePosition); editor.getWorkspaceEntry().setPastePosition(pastePosition); return true; } } if (e.isExtendKeyDown()) { currentNodes = getNodeWithAdjacentConnections(e.getModel(), currentNode); editor.repaint(); return true; } return super.keyPressed(e); }
Example 13
Source File: ScenarioGeneratorTool.java From workcraft with MIT License | 4 votes |
@Override public int getHotKeyCode() { return KeyEvent.VK_G; }
Example 14
Source File: MissingCharsKorean.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
private static boolean setKeyInput(int iCount) { boolean inputSet = true; switch(iCount) { case 0: // Input Korean q (#12610) /(#47) expectedResults = new int[]{ 12610, 47 }; inKeyCodes = new int[][] { {KeyEvent.VK_Q}, {KeyEvent.VK_SLASH} }; break; case 1: // Input Korean q (#12610) /(#47) gh (#54840) \(#92) expectedResults = new int[]{ 12610, 47, 54840, 92 }; inKeyCodes = new int[][] { {KeyEvent.VK_Q}, {KeyEvent.VK_SLASH}, {KeyEvent.VK_G}, {KeyEvent.VK_H}, {KeyEvent.VK_BACK_SLASH} }; break; case 2: // Input Korean q (#12610) /(#47) ghq (#54857) \(#92) expectedResults = new int[]{ 12610, 47, 54857, 92 }; inKeyCodes = new int[][] { {KeyEvent.VK_Q}, {KeyEvent.VK_SLASH}, {KeyEvent.VK_G}, {KeyEvent.VK_H}, {KeyEvent.VK_Q}, {KeyEvent.VK_BACK_SLASH} }; break; case 3: // Input Korean q (#12610) /(#47) gh (#54840) \(#92) expectedResults = new int[]{ 12610, 47, 54840, 92 }; inKeyCodes = new int[][] { {KeyEvent.VK_Q}, {KeyEvent.VK_SLASH}, {KeyEvent.VK_G}, {KeyEvent.VK_H}, {KeyEvent.VK_Q}, {KeyEvent.VK_BACK_SPACE}, {KeyEvent.VK_BACK_SLASH} }; break; case 4: // Input Korean q (#12610) /(#47) g (#12622) \(#92) expectedResults = new int[]{ 12610, 47, 12622, 92 }; inKeyCodes = new int[][] { {KeyEvent.VK_Q}, {KeyEvent.VK_SLASH}, {KeyEvent.VK_G}, {KeyEvent.VK_H}, {KeyEvent.VK_Q}, {KeyEvent.VK_BACK_SPACE}, {KeyEvent.VK_BACK_SPACE}, {KeyEvent.VK_BACK_SLASH} }; break; default: inputSet = false; break; } return inputSet; }
Example 15
Source File: MissingCharsKorean.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
private static boolean setKeyInput(int iCount) { boolean inputSet = true; switch(iCount) { case 0: // Input Korean q (#12610) /(#47) expectedResults = new int[]{ 12610, 47 }; inKeyCodes = new int[][] { {KeyEvent.VK_Q}, {KeyEvent.VK_SLASH} }; break; case 1: // Input Korean q (#12610) /(#47) gh (#54840) \(#92) expectedResults = new int[]{ 12610, 47, 54840, 92 }; inKeyCodes = new int[][] { {KeyEvent.VK_Q}, {KeyEvent.VK_SLASH}, {KeyEvent.VK_G}, {KeyEvent.VK_H}, {KeyEvent.VK_BACK_SLASH} }; break; case 2: // Input Korean q (#12610) /(#47) ghq (#54857) \(#92) expectedResults = new int[]{ 12610, 47, 54857, 92 }; inKeyCodes = new int[][] { {KeyEvent.VK_Q}, {KeyEvent.VK_SLASH}, {KeyEvent.VK_G}, {KeyEvent.VK_H}, {KeyEvent.VK_Q}, {KeyEvent.VK_BACK_SLASH} }; break; case 3: // Input Korean q (#12610) /(#47) gh (#54840) \(#92) expectedResults = new int[]{ 12610, 47, 54840, 92 }; inKeyCodes = new int[][] { {KeyEvent.VK_Q}, {KeyEvent.VK_SLASH}, {KeyEvent.VK_G}, {KeyEvent.VK_H}, {KeyEvent.VK_Q}, {KeyEvent.VK_BACK_SPACE}, {KeyEvent.VK_BACK_SLASH} }; break; case 4: // Input Korean q (#12610) /(#47) g (#12622) \(#92) expectedResults = new int[]{ 12610, 47, 12622, 92 }; inKeyCodes = new int[][] { {KeyEvent.VK_Q}, {KeyEvent.VK_SLASH}, {KeyEvent.VK_G}, {KeyEvent.VK_H}, {KeyEvent.VK_Q}, {KeyEvent.VK_BACK_SPACE}, {KeyEvent.VK_BACK_SPACE}, {KeyEvent.VK_BACK_SLASH} }; break; default: inputSet = false; break; } return inputSet; }
Example 16
Source File: MissingCharsKorean.java From dragonwell8_jdk with GNU General Public License v2.0 | 4 votes |
private static boolean setKeyInput(int iCount) { boolean inputSet = true; switch(iCount) { case 0: // Input Korean q (#12610) /(#47) expectedResults = new int[]{ 12610, 47 }; inKeyCodes = new int[][] { {KeyEvent.VK_Q}, {KeyEvent.VK_SLASH} }; break; case 1: // Input Korean q (#12610) /(#47) gh (#54840) \(#92) expectedResults = new int[]{ 12610, 47, 54840, 92 }; inKeyCodes = new int[][] { {KeyEvent.VK_Q}, {KeyEvent.VK_SLASH}, {KeyEvent.VK_G}, {KeyEvent.VK_H}, {KeyEvent.VK_BACK_SLASH} }; break; case 2: // Input Korean q (#12610) /(#47) ghq (#54857) \(#92) expectedResults = new int[]{ 12610, 47, 54857, 92 }; inKeyCodes = new int[][] { {KeyEvent.VK_Q}, {KeyEvent.VK_SLASH}, {KeyEvent.VK_G}, {KeyEvent.VK_H}, {KeyEvent.VK_Q}, {KeyEvent.VK_BACK_SLASH} }; break; case 3: // Input Korean q (#12610) /(#47) gh (#54840) \(#92) expectedResults = new int[]{ 12610, 47, 54840, 92 }; inKeyCodes = new int[][] { {KeyEvent.VK_Q}, {KeyEvent.VK_SLASH}, {KeyEvent.VK_G}, {KeyEvent.VK_H}, {KeyEvent.VK_Q}, {KeyEvent.VK_BACK_SPACE}, {KeyEvent.VK_BACK_SLASH} }; break; case 4: // Input Korean q (#12610) /(#47) g (#12622) \(#92) expectedResults = new int[]{ 12610, 47, 12622, 92 }; inKeyCodes = new int[][] { {KeyEvent.VK_Q}, {KeyEvent.VK_SLASH}, {KeyEvent.VK_G}, {KeyEvent.VK_H}, {KeyEvent.VK_Q}, {KeyEvent.VK_BACK_SPACE}, {KeyEvent.VK_BACK_SPACE}, {KeyEvent.VK_BACK_SLASH} }; break; default: inputSet = false; break; } return inputSet; }
Example 17
Source File: ExportPNGAction.java From PIPE with MIT License | 2 votes |
/** * Constructor * Sets short cut to ctrl G */ public ExportPNGAction() { super("PNG", "Export the net to PNG format", KeyEvent.VK_G, InputEvent.META_DOWN_MASK); }