Ver Fonte

CDB: Escape is now closing gradient editor

lviguier há 5 meses atrás
pai
commit
ef8759245e
1 ficheiros alterados com 1 adições e 2 exclusões
  1. 1 2
      hide/comp/cdb/Cell.hx

+ 1 - 2
hide/comp/cdb/Cell.hx

@@ -1249,6 +1249,7 @@ class Cell {
 			}
 			editor.gradientEditor.anchor = e;
 			editor.gradientEditor.open();
+			editor.gradientEditor.element.focus();
 
 			var gradient = hrt.impl.Gradient.getDefaultGradientData();
 			if (value != null && value.colors != null && value.colors.length >= 1) {
@@ -1274,8 +1275,6 @@ class Cell {
 					refresh();
 					focus();
 				}
-
-
 			}
 
 			var customPreviews : Array<hide.comp.GradientEditor.PreviewSettings> = editor.config.get("cdb.gradientCustomPreviews");