diff options
author | Gunnar Sletta <gunnar.sletta@nokia.com> | 2011-05-31 18:18:56 +0200 |
---|---|---|
committer | Gunnar Sletta <gunnar.sletta@nokia.com> | 2011-05-31 18:18:56 +0200 |
commit | 63fd0d90965694c52f82a8c7a80cea86f3bacc7c (patch) | |
tree | 876eb07bc63b34272eabcb8bfe705b18275a640e | |
parent | 8ca35943f1fbfd25cafb245999f5c817a7f62eb4 (diff) |
Clear with 'C' and quit using 'ESC'.
-rw-r--r-- | src/Presentation.qml | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/Presentation.qml b/src/Presentation.qml index c00dfb9..c7a94ce 100644 --- a/src/Presentation.qml +++ b/src/Presentation.qml @@ -97,10 +97,14 @@ Item { focus: true - Keys.onSpacePressed: goToNextSlide(); - Keys.onRightPressed: goToNextSlide(); - Keys.onLeftPressed: goToPreviousSlide(); - Keys.onEscapePressed: root.faded = !root.faded; + Keys.onSpacePressed: goToNextSlide() + Keys.onRightPressed: goToNextSlide() + Keys.onLeftPressed: goToPreviousSlide() + Keys.onEscapePressed: Qt.quit() + Keys.onPressed: { + if (event.key == Qt.Key_C) + root.faded = !root.faded + } Rectangle { z: 1000 |