mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-153753 Find by mouse shortcut does not work with mouse button 4/5
This commit is contained in:
+5
@@ -24,6 +24,7 @@ import com.intellij.openapi.actionSystem.ex.ActionUtil;
|
||||
import com.intellij.openapi.actionSystem.impl.PresentationFactory;
|
||||
import com.intellij.openapi.keymap.Keymap;
|
||||
import com.intellij.openapi.keymap.KeymapManager;
|
||||
import com.intellij.openapi.keymap.impl.ui.MouseShortcutPanel;
|
||||
import com.intellij.openapi.util.SystemInfo;
|
||||
import com.intellij.openapi.util.registry.Registry;
|
||||
import com.intellij.openapi.wm.IdeFocusManager;
|
||||
@@ -215,6 +216,10 @@ public final class IdeMouseEventDispatcher {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (c instanceof MouseShortcutPanel || c.getParent() instanceof MouseShortcutPanel) {
|
||||
return false; // forward mouse processing to the special shortcut panel
|
||||
}
|
||||
|
||||
if (isHorizontalScrolling(c, e)) {
|
||||
boolean done = doHorizontalScrolling(c, (MouseWheelEvent)e);
|
||||
if (done) return true;
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ import java.awt.event.MouseWheelEvent;
|
||||
/**
|
||||
* @author Sergey.Malenkov
|
||||
*/
|
||||
final class MouseShortcutPanel extends ShortcutPanel<MouseShortcut> {
|
||||
public final class MouseShortcutPanel extends ShortcutPanel<MouseShortcut> {
|
||||
static final JBColor FOREGROUND = new JBColor(0x8C8C8C, 0x8C8C8C);
|
||||
static final JBColor BACKGROUND = new JBColor(0xF5F5F5, 0x4B4F52);
|
||||
static final JBColor BORDER = new JBColor(0xDEDEDE, 0x383B3D);
|
||||
|
||||
Reference in New Issue
Block a user