disable any editor mouse drag processing with right mouse button

disabled by default for now,
selection appeared with two buttons (left+right) pressed, which is bad for powermouse plugin users for example
This commit is contained in:
Egor Ushakov
2017-12-21 12:18:29 +03:00
parent 3e37b4f6a4
commit 50ce4ec7a6
2 changed files with 5 additions and 1 deletions
@@ -2274,7 +2274,8 @@ public final class EditorImpl extends UserDataHolderBase implements EditorEx, Hi
}
private void processMouseDragged(@NotNull MouseEvent e) {
if (!JBSwingUtilities.isLeftMouseButton(e) && !JBSwingUtilities.isMiddleMouseButton(e)) {
if (!JBSwingUtilities.isLeftMouseButton(e) && !JBSwingUtilities.isMiddleMouseButton(e)
|| (Registry.is("editor.disable.drag.with.right.button") && JBSwingUtilities.isRightMouseButton(e))) {
return;
}
@@ -1401,5 +1401,8 @@ editor.show.right.margin.in.read.only.files.description=Show right margin for re
editor.text.fractional.metrics=false
editor.text.fractional.metrics.description=Do not round glyph advances to integer values
editor.disable.drag.with.right.button=false
editor.disable.drag.with.right.button.description=Disable any mouse drag processing in editor with right mouse button pressed
idea.invalidate.caches.invalidates.vfs=false
idea.invalidate.caches.invalidates.vfs.description=Invalidate caches tries to invalidate everything, including Local History