summaryrefslogtreecommitdiff
path: root/trunk/pdf-over-gui/src/main/java/at
diff options
context:
space:
mode:
authortkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459>2012-10-31 16:36:41 +0000
committertkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459>2012-10-31 16:36:41 +0000
commit7f3b44e74646e24f78e973c37a71c64643088b0c (patch)
tree2acb33bcc9d5a150f94e95fa7d330a4f8d3269fc /trunk/pdf-over-gui/src/main/java/at
parent84787c7868dcd55883e066c2046144833524a00d (diff)
downloadpdf-over-7f3b44e74646e24f78e973c37a71c64643088b0c.tar.gz
pdf-over-7f3b44e74646e24f78e973c37a71c64643088b0c.tar.bz2
pdf-over-7f3b44e74646e24f78e973c37a71c64643088b0c.zip
Resolve windows keyboard focus issues
git-svn-id: https://svn.iaik.tugraz.at/svn/egiz/prj/current/12PDF-OVER-4.0@12710 3a0b52a2-8410-0410-bc02-ff6273a87459
Diffstat (limited to 'trunk/pdf-over-gui/src/main/java/at')
-rw-r--r--trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java
index d827c811..86ccbe9b 100644
--- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java
+++ b/trunk/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() {