openlp-core team mailing list archive
-
openlp-core team
-
Mailing list archive
-
Message #00122
[Merge] lp:~raoul-snyman/openlp/slidecontroller into lp:openlp
Raoul Snyman has proposed merging lp:~raoul-snyman/openlp/slidecontroller into lp:openlp.
Requested reviews:
openlp.org Core (openlp-core)
Just changed the key press events to a more intuitive set:
1. Up goes to the previous slide
2. Down goes to the next slide
3. Page Up goes to the first slide
4. Page Down goes to the next slide
--
https://code.launchpad.net/~raoul-snyman/openlp/slidecontroller/+merge/7736
Your team openlp.org Core is subscribed to branch lp:openlp.
=== modified file 'openlp/core/ui/slidecontroller.py'
--- openlp/core/ui/slidecontroller.py 2009-06-21 16:26:33 +0000
+++ openlp/core/ui/slidecontroller.py 2009-06-21 19:41:01 +0000
@@ -104,11 +104,17 @@
def keyPressEvent(self, event):
if type(event) == QtGui.QKeyEvent:
#here accept the event and do something
- if event.key() == QtCore.Qt.Key_PageUp:
+ if event.key() == QtCore.Qt.Key_Up:
self.parent.onSlideSelectedPrevious()
event.accept()
+ elif event.key() == QtCore.Qt.Key_Down:
+ self.parent.onSlideSelectedNext()
+ event.accept()
+ elif event.key() == QtCore.Qt.Key_PageUp:
+ self.parent.onSlideSelectedFirst()
+ event.accept()
elif event.key() == QtCore.Qt.Key_PageDown:
- self.parent.onSlideSelectedNext()
+ self.parent.onSlideSelectedLast()
event.accept()
event.ignore()
else:
References