mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
ui: more descriptive warning on attempt to erase shortcut of global action
This commit is contained in:
@@ -278,7 +278,9 @@ public abstract class AnAction implements PossiblyDumbAware {
|
||||
|
||||
protected void setShortcutSet(ShortcutSet shortcutSet) {
|
||||
if (myIsGlobal && myShortcutSet != shortcutSet) {
|
||||
LOG.warn("Shortcuts of global AnActions should not be changed outside of KeymapManager", new Throwable());
|
||||
LOG.warn("ShortcutSet of global AnActions should not be changed outside of KeymapManager.\n" +
|
||||
"This is likely not what you wanted to do. Consider setting shortcut in keymap defaults, inheriting from other action " +
|
||||
"using `use-shortcut-of` or wrapping with EmptyAction.wrap().", new Throwable());
|
||||
}
|
||||
myShortcutSet = shortcutSet;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user