From f5f9723d7c99511790a532715e54499b080fd824 Mon Sep 17 00:00:00 2001 From: Jakob Heher Date: Mon, 8 Aug 2022 13:48:19 +0200 Subject: clicking signature preview forces update --- .../composites/configuration/SimpleConfigurationComposite.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'pdf-over-gui/src') diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/SimpleConfigurationComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/SimpleConfigurationComposite.java index f2c822b6..e849e6f9 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/SimpleConfigurationComposite.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/SimpleConfigurationComposite.java @@ -29,6 +29,9 @@ import org.eclipse.swt.dnd.FileTransfer; import org.eclipse.swt.dnd.Transfer; import org.eclipse.swt.events.FocusAdapter; import org.eclipse.swt.events.FocusEvent; +import org.eclipse.swt.events.MouseAdapter; +import org.eclipse.swt.events.MouseEvent; +import org.eclipse.swt.events.MouseListener; import org.eclipse.swt.events.PaintEvent; import org.eclipse.swt.events.SelectionAdapter; import org.eclipse.swt.events.SelectionEvent; @@ -332,6 +335,13 @@ public class SimpleConfigurationComposite extends ConfigurationCompositeBase { }); this.btnBrowseLogo.addSelectionListener(new ImageFileBrowser()); + this.cSigPreview.addMouseListener(new MouseAdapter() { + @Override + public void mouseUp(MouseEvent e) { + SimpleConfigurationComposite.this.forceFocus(); + } + }); + // Load localized strings reloadResources(); } -- cgit v1.2.3