|
|
@ -31,6 +31,7 @@ import javafx.scene.control.Dialog; |
|
|
|
import javafx.scene.control.Label; |
|
|
|
import javafx.scene.image.Image; |
|
|
|
import javafx.scene.image.ImageView; |
|
|
|
import javafx.scene.input.KeyCode; |
|
|
|
import javafx.scene.text.Font; |
|
|
|
import javafx.stage.Screen; |
|
|
|
import javafx.stage.Stage; |
|
|
@ -449,6 +450,14 @@ public class AppServices { |
|
|
|
stage.hide(); |
|
|
|
} |
|
|
|
|
|
|
|
public static void onEscapePressed(Scene scene, Runnable runnable) { |
|
|
|
scene.setOnKeyPressed(event -> { |
|
|
|
if(event.getCode() == KeyCode.ESCAPE) { |
|
|
|
runnable.run(); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
public Map<Wallet, Storage> getOpenWallets() { |
|
|
|
Map<Wallet, Storage> openWallets = new LinkedHashMap<>(); |
|
|
|
for(List<WalletTabData> walletTabDataList : walletWindows.values()) { |
|
|
|