mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-25 13:16:44 +00:00
select all text in message sign signature field on mouse click
This commit is contained in:
parent
3fedd8eb43
commit
ea3e0ca34a
2 changed files with 2 additions and 1 deletions
|
@ -568,7 +568,7 @@ public class AppController implements Initializable {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void showInstallUdevMessage() {
|
public void showInstallUdevMessage() {
|
||||||
TextAreaDialog dialog = new TextAreaDialog("sudo " + Config.get().getHwi().getAbsolutePath() + " installudevrules");
|
TextAreaDialog dialog = new TextAreaDialog("sudo " + Config.get().getHwi().getAbsolutePath() + " installudevrules", false);
|
||||||
dialog.initOwner(rootStack.getScene().getWindow());
|
dialog.initOwner(rootStack.getScene().getWindow());
|
||||||
dialog.setTitle("Install Udev Rules");
|
dialog.setTitle("Install Udev Rules");
|
||||||
dialog.getDialogPane().setHeaderText("Installing udev rules ensures devices can connect over USB.\nThis command requires root privileges.\nOpen a shell and enter the following:");
|
dialog.getDialogPane().setHeaderText("Installing udev rules ensures devices can connect over USB.\nThis command requires root privileges.\nOpen a shell and enter the following:");
|
||||||
|
|
|
@ -153,6 +153,7 @@ public class MessageSignDialog extends Dialog<ButtonBar.ButtonData> {
|
||||||
signature.setPrefRowCount(4);
|
signature.setPrefRowCount(4);
|
||||||
signature.setStyle("-fx-pref-height: 80px");
|
signature.setStyle("-fx-pref-height: 80px");
|
||||||
signature.setWrapText(true);
|
signature.setWrapText(true);
|
||||||
|
signature.setOnMouseClicked(event -> signature.selectAll());
|
||||||
signatureField.getInputs().add(signature);
|
signatureField.getInputs().add(signature);
|
||||||
|
|
||||||
Field formatField = new Field();
|
Field formatField = new Field();
|
||||||
|
|
Loading…
Reference in a new issue