From 608e9ad409da046a4fde2b70eb7a78ae7cfae8f7 Mon Sep 17 00:00:00 2001 From: Konstantin Bulenkov Date: Thu, 12 Jan 2012 14:16:19 +0100 Subject: [PATCH] IDEA-78382 bugs&lags in color chooser --- platform/platform-api/src/com/intellij/ui/ColorPicker.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/platform-api/src/com/intellij/ui/ColorPicker.java b/platform/platform-api/src/com/intellij/ui/ColorPicker.java index 79b81723138d..de8ab6de5072 100644 --- a/platform/platform-api/src/com/intellij/ui/ColorPicker.java +++ b/platform/platform-api/src/com/intellij/ui/ColorPicker.java @@ -185,7 +185,7 @@ public class ColorPicker extends JPanel implements Consumer, DocumentList } if (color != null) { - updatePreview(color, true); + updatePreview(color, false); } } else { @@ -256,6 +256,7 @@ public class ColorPicker extends JPanel implements Consumer, DocumentList forEveryKey(new PairFunction, Boolean>() { @Override public Boolean fun(JTextField _c, Pair pair) { + if (_c.hasFocus()) return true; final String R = Integer.toHexString(c.getRed()); final String G = Integer.toHexString(c.getGreen()); final String B = Integer.toHexString(c.getBlue());