MCPcopy Create free account
hub / github.com/bither/bither-desktop-java / addOSXKeyStrokes

Method addOSXKeyStrokes

src/main/java/net/bither/Bither.java:252–260  ·  view source on GitHub ↗
(InputMap inputMap)

Source from the content-addressed store, hash-verified

250 }
251
252 private static void addOSXKeyStrokes(InputMap inputMap) {
253
254 // Undo and redo require more complex handling
255 inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_C, KeyEvent.META_DOWN_MASK), DefaultEditorKit.copyAction);
256 inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_X, KeyEvent.META_DOWN_MASK), DefaultEditorKit.cutAction);
257 inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_V, KeyEvent.META_DOWN_MASK), DefaultEditorKit.pasteAction);
258 inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_A, KeyEvent.META_DOWN_MASK), DefaultEditorKit.selectAllAction);
259
260 }
261
262 private static void fixJavaBug() {
263 // Set any bespoke system properties.

Callers 1

initialiseJVMMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected