mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-26828: Unable to delete task [rev. by spleaner]
This commit is contained in:
-6
@@ -855,12 +855,6 @@ public class ChooseRunConfigurationAction extends AnAction {
|
||||
|
||||
protected abstract void handleShiftClick(boolean handleFinalChoices, final InputEvent inputEvent, final RunListPopup popup);
|
||||
|
||||
@Override
|
||||
protected boolean isActionClick(MouseEvent e) {
|
||||
if (e.getButton() == MouseEvent.BUTTON2 || e.isPopupTrigger() || e.getID() != MouseEvent.MOUSE_PRESSED) return false;
|
||||
return e.getButton() == MouseEvent.BUTTON1;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected ListCellRenderer getListElementRenderer() {
|
||||
return new RunListElementRenderer(this);
|
||||
|
||||
@@ -48,7 +48,6 @@ public class ListPopupImpl extends WizardPopup implements ListPopup {
|
||||
private int myMaxRowCount = 20;
|
||||
private boolean myAutoHandleBeforeShow;
|
||||
|
||||
|
||||
public ListPopupImpl(ListPopupStep aStep, int maxRowCount) {
|
||||
super(aStep);
|
||||
if (maxRowCount != -1){
|
||||
@@ -368,7 +367,7 @@ public class ListPopupImpl extends WizardPopup implements ListPopup {
|
||||
}
|
||||
|
||||
protected boolean isActionClick(MouseEvent e) {
|
||||
return UIUtil.isActionClick(e);
|
||||
return UIUtil.isActionClick(e, MouseEvent.MOUSE_PRESSED, true);
|
||||
}
|
||||
|
||||
private class MyMouseListener extends MouseAdapter {
|
||||
|
||||
@@ -1016,7 +1016,11 @@ public class UIUtil {
|
||||
}
|
||||
|
||||
public static boolean isActionClick(MouseEvent e, int effectiveType) {
|
||||
if (isCloseClick(e) || e.isPopupTrigger() || e.getID() != effectiveType) return false;
|
||||
return isActionClick(e, effectiveType, false);
|
||||
}
|
||||
|
||||
public static boolean isActionClick(MouseEvent e, int effectiveType, boolean allowShift) {
|
||||
if ((!allowShift && isCloseClick(e)) || e.isPopupTrigger() || e.getID() != effectiveType) return false;
|
||||
return e.getButton() == MouseEvent.BUTTON1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user