void (final RunListPopup popup) { popup.registerAction("alternateExecutor", KeyStroke.getKeyStroke("shift pressed SHIFT"), new AbstractAction() { @Override public void actionPerformed(ActionEvent e) { myCurrentExecutor = myAlternativeExecutor; updatePresentation(); } }); popup.registerAction("restoreDefaultExecutor", KeyStroke.getKeyStroke("released SHIFT"), new AbstractAction() { @Override public void actionPerformed(ActionEvent e) { myCurrentExecutor = myDefaultExecutor; updatePresentation(); } }); popup.registerAction("invokeAction", KeyStroke.getKeyStroke("shift ENTER"), new AbstractAction() { @Override public void actionPerformed(ActionEvent e) { popup.handleSelect(true); } }); popup.registerAction("editConfiguration", KeyStroke.getKeyStroke("F4"), new AbstractAction() { @Override public void actionPerformed(ActionEvent e) { myEditConfiguration = true; popup.handleSelect(true); } }); popup.registerAction("deleteConfiguration", KeyStroke.getKeyStroke("DELETE"), new AbstractAction() { @Override public void actionPerformed(ActionEvent e) { popup.removeSelected(); } }); popup.registerAction("speedsearch_bksp", KeyStroke.getKeyStroke("BACK_SPACE"), new AbstractAction() { @Override public void actionPerformed(ActionEvent e) { SpeedSearch speedSearch = popup.getSpeedSearch(); if (speedSearch.isHoldingFilter()) { speedSearch.backspace(); speedSearch.update(); } else { popup.removeSelected(); } } }); for (int i = 0; i < 10; i++) { addNumberAction(popup, i); } }