mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[debugger] IJPL-253407 Fix setting a breakpoint on Windows/Linux with Ctrl key pressed
This is a copy of the commit 1d30c897a96c4a252559604532afb9823f538d8c in master. Direct cherry-pick is not possible, as the master commit modified an extracted file that is not ported to 262. IJ-CR-219851 GitOrigin-RevId: a418d5533157108241604e80c100d0bcf430ad9d
This commit is contained in:
committed by
intellij-monorepo-bot
parent
b2cf5b4937
commit
25cd511391
+4
-1
@@ -62,6 +62,8 @@ import com.intellij.util.SlowOperations
|
||||
import com.intellij.util.asDisposable
|
||||
import com.intellij.util.concurrency.annotations.RequiresEdt
|
||||
import com.intellij.util.containers.MultiMap
|
||||
import com.intellij.util.system.LowLevelLocalMachineAccess
|
||||
import com.intellij.util.system.OS
|
||||
import com.intellij.util.ui.EDT
|
||||
import com.intellij.util.ui.update.MergingUpdateQueue
|
||||
import com.intellij.util.ui.update.Update
|
||||
@@ -492,10 +494,11 @@ class XLineBreakpointManager(
|
||||
myDragDetected = false
|
||||
}
|
||||
|
||||
@OptIn(LowLevelLocalMachineAccess::class)
|
||||
override fun mouseClicked(e: EditorMouseEvent) {
|
||||
val editor = e.editor
|
||||
val mouseEvent = e.mouseEvent
|
||||
if ((mouseEvent.isPopupTrigger || mouseEvent.isControlDown)
|
||||
if ((mouseEvent.isPopupTrigger || OS.CURRENT == OS.macOS && mouseEvent.isControlDown)
|
||||
|| mouseEvent.button != MouseEvent.BUTTON1
|
||||
|| DiffUtil.isDiffEditor(editor)
|
||||
|| !isInsideClickableGutterArea(e)
|
||||
|
||||
Reference in New Issue
Block a user