summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration
diff options
context:
space:
mode:
authorJakob Heher <jakob.heher@iaik.tugraz.at>2022-08-08 13:48:19 +0200
committerJakob Heher <jakob.heher@iaik.tugraz.at>2022-08-08 13:48:19 +0200
commitf5f9723d7c99511790a532715e54499b080fd824 (patch)
treeb43124b7f86a78562fc4c118e307b98fa988831a /pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration
parent8faec0fe57768d23032e23f7da05864ded4f9856 (diff)
downloadpdf-over-f5f9723d7c99511790a532715e54499b080fd824.tar.gz
pdf-over-f5f9723d7c99511790a532715e54499b080fd824.tar.bz2
pdf-over-f5f9723d7c99511790a532715e54499b080fd824.zip
clicking signature preview forces update
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/SimpleConfigurationComposite.java10
1 files changed, 10 insertions, 0 deletions
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();
}