MCPcopy Create free account
hub / github.com/Card-Forge/forge / longPress

Method longPress

forge-gui-mobile/src/forge/toolbox/FTextField.java:214–223  ·  view source on GitHub ↗
(float x, float y)

Source from the content-addressed store, hash-verified

212 }
213
214 @Override
215 public boolean longPress(float x, float y) {
216 if (isEditing) {
217 endEdit(); //end previous edit first
218 }
219 selStart = 0;
220 selLength = text.length(); //select text while context menu open
221 contextMenu.show(this, x, y);
222 return true;
223 }
224
225 @Override
226 public boolean tap(float x, float y, int count) {

Callers

nothing calls this directly

Calls 3

endEditMethod · 0.95
lengthMethod · 0.80
showMethod · 0.45

Tested by

no test coverage detected