MCPcopy Create free account
hub / github.com/BaseXdb/basex / keyPressed

Method keyPressed

basex-core/src/main/java/org/basex/gui/view/View.java:102–113  ·  view source on GitHub ↗
(final KeyEvent e)

Source from the content-addressed store, hash-verified

100 }
101
102 @Override
103 public void keyPressed(final KeyEvent e) {
104 if(gui.updating) return;
105 if(ESCAPE.is(e)) gui.fullscreen(false);
106
107 if(gui.context.data() == null) return;
108 if(SPACE.is(e)) {
109 gui.notify.mark(sc(e) ? 2 : e.isShiftDown() ? 1 : 0, null);
110 } else if(ENTER.is(e)) {
111 GUIMenuCmd.C_FILTER_NODES.execute(gui);
112 }
113 }
114
115 @Override
116 public final String toString() {

Callers

nothing calls this directly

Calls 6

fullscreenMethod · 0.80
isMethod · 0.65
executeMethod · 0.65
dataMethod · 0.45
markMethod · 0.45
scMethod · 0.45

Tested by

no test coverage detected