private boolean shouldShowMnemonics( KeyEvent e ) {
		return e.getID() == KeyEvent.KEY_PRESSED ||
			MenuSelectionManager.defaultManager().getSelectedPath().length > 0;
	}
Show/hide mnemonics.

@author Karl Tauber
flatlaf-core/src/main/java/com/formdev/flatlaf/MnemonicHandler.java