mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 23:18:17 +01:00
Fix bug with closing wallet password popup when pressing enter or escape
This commit is contained in:
parent
da91a15431
commit
3561640870
1 changed files with 8 additions and 6 deletions
|
@ -380,12 +380,14 @@ public abstract class Overlay<T extends Overlay> {
|
|||
scene.getStylesheets().setAll(rootScene.getStylesheets());
|
||||
scene.setFill(Color.TRANSPARENT);
|
||||
|
||||
scene.setOnKeyPressed(e -> {
|
||||
if (e.getCode() == KeyCode.ESCAPE || e.getCode() == KeyCode.ENTER) {
|
||||
e.consume();
|
||||
doClose();
|
||||
}
|
||||
});
|
||||
if (!hideCloseButton) {
|
||||
scene.setOnKeyPressed(e -> {
|
||||
if (e.getCode() == KeyCode.ESCAPE || e.getCode() == KeyCode.ENTER) {
|
||||
e.consume();
|
||||
doClose();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
stage = new Stage();
|
||||
stage.setScene(scene);
|
||||
|
|
Loading…
Add table
Reference in a new issue