Add key bindings for zooming in full screen mode
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 29 Apr 2007 19:26:03 +0000 (21:26 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 29 Apr 2007 19:26:03 +0000 (21:26 +0200)
+ --> zoom in
- --> zoom out
0 --> actual size
= --> best fit

src/packages/kofoto/gkofoto/fullscreenwindow.py

index 467ed32..32ce7f6 100644 (file)
@@ -137,6 +137,18 @@ class FullScreenWindow(gtk.Window):
         if event.keyval == k.Escape:
             self.destroy()
             return True
+        if event.keyval == k.plus:
+            self._image_view.zoom_in()
+            return
+        if event.keyval == k.minus:
+            self._image_view.zoom_out()
+            return
+        if event.keyval == k._0:
+            self._image_view.zoom_to_actual()
+            return
+        if event.keyval == k.equal:
+            self._image_view.zoom_to_fit()
+            return
         return False
 
     def _maybe_cancel_load(self):