MCPcopy Create free account
hub / github.com/BombusMod/BombusMod / doKeyAction

Method doKeyAction

src/main/java/Menu/Menu.java:87–93  ·  view source on GitHub ↗
(int keyCode)

Source from the content-addressed store, hash-verified

85 public void captionPressed() {}
86
87 public void doKeyAction(int keyCode) {
88 if (executeByNum && getItemCount() > 0 && keyCode >=0 && keyCode <= 9) {
89 executeCommand(keyCode);
90 return;
91 }
92 super.doKeyAction(keyCode);
93 }
94
95 private void executeCommand(int index) {
96 moveCursorTo(index == 0 ? 9 : index - 1);

Callers

nothing calls this directly

Calls 2

getItemCountMethod · 0.95
executeCommandMethod · 0.95

Tested by

no test coverage detected