fix issue #5460 (when enter key used, focus is wrong)

This commit is contained in:
jmacxx 2021-05-06 23:19:58 -05:00
parent 83d9fa0ee8
commit 11616610a8
No known key found for this signature in database
GPG Key ID: 155297BABFE94A1B

View File

@ -200,6 +200,7 @@ public class EditOfferView extends MutableOfferView<EditOfferViewModel> {
editOfferConfirmationBox.getChildren().add(cancelButton);
confirmButton.setOnAction(e -> {
confirmButton.requestFocus(); // fix issue #5460 (when enter key used, focus is wrong)
if (model.isPriceInRange()) {
model.isNextButtonDisabled.setValue(true);
cancelButton.setDisable(true);