From 5f96570c07f1f18b4c0579563bf59304875e7c8b Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Mon, 16 Jan 2023 14:46:24 +0200 Subject: [PATCH] request treetable focus after editing a label cell --- src/main/java/com/sparrowwallet/sparrow/control/LabelCell.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/sparrowwallet/sparrow/control/LabelCell.java b/src/main/java/com/sparrowwallet/sparrow/control/LabelCell.java index f51cc541..2d8988da 100644 --- a/src/main/java/com/sparrowwallet/sparrow/control/LabelCell.java +++ b/src/main/java/com/sparrowwallet/sparrow/control/LabelCell.java @@ -2,6 +2,7 @@ package com.sparrowwallet.sparrow.control; import com.sparrowwallet.drongo.wallet.BlockTransactionHash; import com.sparrowwallet.sparrow.wallet.Entry; +import javafx.application.Platform; import javafx.beans.property.IntegerProperty; import javafx.beans.property.SimpleIntegerProperty; import javafx.event.Event; @@ -65,6 +66,7 @@ class LabelCell extends TextFieldTreeTableCell implements Confirm } super.commitEdit(label); + Platform.runLater(() -> getTreeTableView().requestFocus()); } @Override