/** * Invoked when a key is released. Not intended to be overridden or extended. */ public void keyReleased(KeyEvent e) { // simulate what is done in JComponents registerKeyboardActions. int code = e.getKeyCode(); if (code == KeyEvent.VK_F1 || code == KeyEvent.VK_HELP) { ActionListener al = null; if (helpKeyHS != null) { al = new CSH.DisplayHelpFromFocus(helpKeyHS, helpKeyPresentation, helpKeyPresentationName); } else { al = getDisplayHelpFromFocus(); } al.actionPerformed(new ActionEvent(e.getComponent(), ActionEvent.ACTION_PERFORMED, null)); } }
ActionListener al = null; if (presentation == null) { al = getDisplayHelpFromFocus(); } else { al = new CSH.DisplayHelpFromFocus(hs, presentation,