fix invalid warning for use-shortcut-of actions (IDEA-70230 [Cmd]+[W] does not work in Keymap to close current tab)

This commit is contained in:
Alexey Pegov
2011-06-01 20:16:07 +04:00
parent a083fdf1dd
commit e27aec1d6a
@@ -858,6 +858,11 @@ public class KeymapImpl implements Keymap, ExternalizableScheme {
continue;
}
final String useShortcutOf = myKeymapManager.getActionBinding(id);
if (useShortcutOf != null && useShortcutOf.equals(actionId)) {
continue;
}
Shortcut[] shortcuts = getShortcuts(id);
for (Shortcut shortcut1 : shortcuts) {
if (!(shortcut1 instanceof KeyboardShortcut)) {