Commit fca3daf6 authored by Vassiliy.Kudryashov's avatar Vassiliy.Kudryashov
Browse files

IDEA-139688 Shortcut for terminating (CMD+F2 on mac) multiple runs doesn't work

parent 67195921
Showing with 4 additions and 2 deletions
+4 -2
......@@ -165,8 +165,10 @@ class StopAction extends DumbAwareAction implements AnAction.TransparentUpdate {
.setTitle(handlerItems.first.size() == 1 ? "Confirm process stop" : "Stop process")
.setFilteringEnabled(o -> ((HandlerItem)o).displayName)
.setItemChoosenCallback(() -> {
HandlerItem item = (HandlerItem)list.getSelectedValue();
if (item != null) item.stop();
List valuesList = list.getSelectedValuesList();
for (Object o : valuesList) {
if (o instanceof HandlerItem) ((HandlerItem)o).stop();
}
})
.setRequestFocus(true)
.createPopup();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment