summaryrefslogtreecommitdiff
path: root/pdf-over-gui
diff options
context:
space:
mode:
authortkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:05:28 +0000
committertkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:05:28 +0000
commitcd2e3fbdf19d01cd5eac65358e313c993c9564e8 (patch)
tree46202c1f6e54e074e8c5b9c2da863e26fd1593e3 /pdf-over-gui
parent22e9510a572605393556eb75b3037729ae2abe43 (diff)
downloadpdf-over-cd2e3fbdf19d01cd5eac65358e313c993c9564e8.tar.gz
pdf-over-cd2e3fbdf19d01cd5eac65358e313c993c9564e8.tar.bz2
pdf-over-cd2e3fbdf19d01cd5eac65358e313c993c9564e8.zip
Resolve windows keyboard focus issues
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@124 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java
index d827c811..86ccbe9b 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java
@@ -92,6 +92,8 @@ public class PositioningComposite extends StateComposite {
this.numPages = this.pdf.getNumPages();
this.scrollbar.setValues(1, 1, this.numPages + 1, 1, 1, 1);
showPage(this.numPages);
+ this.setFocus();
+ this.frame.requestFocus();
}
/**
@@ -122,6 +124,8 @@ public class PositioningComposite extends StateComposite {
this.addKeyListener(this.keyListener);
this.frame.addMouseWheelListener(this.mouseListener);
this.scrollbar.addSelectionListener(this.selectionListener);
+ this.setFocus();
+ this.frame.requestFocus();
}
private KeyListener keyListener = new KeyAdapter() {