MCPcopy Index your code
hub / github.com/BombusMod/BombusMod / menuAction

Method menuAction

src/main/java/ui/keys/UserKeysList.java:90–107  ·  view source on GitHub ↗
(MenuCommand c, VirtualList d)

Source from the content-addressed store, hash-verified

88 }
89
90 public void menuAction(MenuCommand c, VirtualList d) {
91 if (c == cmdEdit) {
92 new UserKeyEdit(this, (UserKey) getFocusedObject(), cursor == 0);
93 }
94 if (c == cmdAdd) {
95 new UserKeyEdit(this, null, false);
96 }
97 if (c == cmdDel && cursor > 0) {
98 keyScheme.removeFromFullKeysList(cursor);
99 moveCursorHome();
100 commandState();
101 redraw();
102 }
103 if (c == cmdApply) {
104 cmdOk();
105 }
106 super.menuAction(c, d);
107 }
108
109 public void eventOk() {
110 new UserKeyEdit(this, (UserKey) getFocusedObject(), cursor == 0);

Callers

nothing calls this directly

Calls 7

commandStateMethod · 0.95
cmdOkMethod · 0.95
getFocusedObjectMethod · 0.80
menuActionMethod · 0.65
moveCursorHomeMethod · 0.45
redrawMethod · 0.45

Tested by

no test coverage detected