From c5c829fea00057499f6818d450f849ac255c2f10 Mon Sep 17 00:00:00 2001 From: Jakob Heher Date: Thu, 3 Nov 2022 14:15:48 +0100 Subject: auto focus username/password field as appropriate --- .../src/main/java/at/asit/pdfover/gui/workflow/StateMachine.java | 4 +++- .../main/java/at/asit/pdfover/gui/workflow/states/MobileBKUState.java | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow') diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/StateMachine.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/StateMachine.java index 3cbf28f9..1ac40b8f 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/StateMachine.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/StateMachine.java @@ -25,6 +25,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import at.asit.pdfover.gui.MainWindow; +import at.asit.pdfover.gui.composites.StateComposite; import at.asit.pdfover.gui.controls.Dialog.BUTTONS; import at.asit.pdfover.gui.controls.ErrorDialog; import at.asit.pdfover.commons.Messages; @@ -147,8 +148,9 @@ public class StateMachine { * at.asit.pdfover.gui.workflow.StateMachine#display(org.eclipse.swt.widgets * .Composite) */ - public void display(Composite composite) { + public void display(StateComposite composite) { this.mainWindow.setTopControl(composite); + composite.onDisplay(); } private void createMainWindow() { diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/MobileBKUState.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/MobileBKUState.java index d615d710..4ddededf 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/MobileBKUState.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/MobileBKUState.java @@ -563,7 +563,6 @@ public class MobileBKUState extends State { // TODO signature data, sms tan support getStateMachine().display(fido2); - fido2.beginAuthentication(); Display display = fido2.getDisplay(); while (!fido2.isDone()) { -- cgit v1.2.3