select all text in message sign signature field on mouse click

This commit is contained in:
Craig Raw 2023-11-07 15:16:06 +02:00
parent 3fedd8eb43
commit ea3e0ca34a
2 changed files with 2 additions and 1 deletions

View file

@ -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:");

View file

@ -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();