mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[ui] correctly handling mnemonics in AnAction.copyFrom
This commit is contained in:
@@ -191,7 +191,7 @@ public abstract class AnAction implements PossiblyDumbAware {
|
||||
Presentation sourcePresentation = sourceAction.getTemplatePresentation();
|
||||
Presentation presentation = getTemplatePresentation();
|
||||
presentation.setIcon(sourcePresentation.getIcon());
|
||||
presentation.setText(sourcePresentation.getTextWithMnemonic());
|
||||
presentation.setText(sourcePresentation.getTextWithMnemonic(), sourcePresentation.getDisplayedMnemonicIndex() >= 0);
|
||||
presentation.setDescription(sourcePresentation.getDescription());
|
||||
copyShortcutFrom(sourceAction);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user