IDEA-201428 Add SE actions shortcuts to keymap settings

This commit is contained in:
Mikhail Sokolov
2018-11-07 21:30:30 +03:00
parent 11219cc690
commit c82d552fe4
@@ -130,7 +130,7 @@ public class ActionSearchEverywhereContributor implements SearchEverywhereContri
@Override
public boolean processSelectedItem(@NotNull Object selected, int modifiers, @NotNull String text) {
if (modifiers == InputEvent.ALT_MASK) {
doAssignShortcut((GotoActionModel.MatchedValue) selected);
showAssignShortcutDialog((GotoActionModel.MatchedValue) selected);
return true;
}
@@ -157,7 +157,7 @@ public class ActionSearchEverywhereContributor implements SearchEverywhereContri
return value instanceof AnAction ? (AnAction) value : null;
}
private void doAssignShortcut(@NotNull GotoActionModel.MatchedValue value) {
private void showAssignShortcutDialog(@NotNull GotoActionModel.MatchedValue value) {
AnAction action = getAction(value);
if (action == null) return;