Skip to content

Commit 7507bfc

Browse files
committed
for prev.
1 parent 01e8d56 commit 7507bfc

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/main/java/com/ss/editor/ui/control/material/MaterialParamControl.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import com.ss.editor.config.EditorConfig;
66
import com.ss.editor.model.undo.EditorOperation;
77
import com.ss.editor.ui.css.CSSClasses;
8+
import com.ss.editor.ui.util.UIUtils;
89
import com.ss.rlib.logging.Logger;
910
import com.ss.rlib.logging.LoggerManager;
1011
import com.ss.rlib.ui.util.FXUtils;
@@ -91,6 +92,8 @@ protected MaterialParamControl(@NotNull final Consumer<EditorOperation> changeHa
9192
this.material = material;
9293
this.parameterName = parameterName;
9394

95+
setOnKeyReleased(UIUtils::consumeIfIsNotHotKey);
96+
setOnKeyPressed(UIUtils::consumeIfIsNotHotKey);
9497
setIgnoreListeners(true);
9598
try {
9699
createComponents();

0 commit comments

Comments
 (0)