mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-09-26 02:15:47 +00:00
Focus fix
This commit is contained in:
@@ -57,12 +57,10 @@ public class TextFieldComp extends Comp<CompStructure<TextField>> {
|
||||
text.setOnKeyPressed(ke -> {
|
||||
if (ke.getCode().equals(KeyCode.ENTER)) {
|
||||
text.getScene().getRoot().requestFocus();
|
||||
ke.consume();
|
||||
}
|
||||
|
||||
if (lazy && ke.getCode().equals(KeyCode.ENTER)) {
|
||||
lastAppliedValue.setValue(currentValue.getValue());
|
||||
ke.consume();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user