Changeset View
Changeset View
Standalone View
Standalone View
discover/qml/DiscoverPage.qml
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | 41 | readonly property var s1: Shortcut { | |||
---|---|---|---|---|---|
42 | sequence: StandardKey.MoveToNextPage | 42 | sequence: StandardKey.MoveToNextPage | ||
43 | enabled: root.isCurrentPage | 43 | enabled: root.isCurrentPage | ||
44 | onActivated: { | 44 | onActivated: { | ||
45 | root.flickable.contentY += root.flickable.height | 45 | root.flickable.contentY += root.flickable.height | ||
46 | root.flickable.returnToBounds() | 46 | root.flickable.returnToBounds() | ||
47 | } | 47 | } | ||
48 | } | 48 | } | ||
49 | 49 | | |||
50 | readonly property var s2: Shortcut { | 50 | readonly property var shortcutPrevious: Shortcut { | ||
51 | sequence: StandardKey.MoveToPreviousPage | 51 | sequence: StandardKey.MoveToPreviousPage | ||
52 | enabled: root.isCurrentPage | 52 | enabled: root.isCurrentPage | ||
53 | onActivated: { | 53 | onActivated: { | ||
54 | root.flickable.contentY -= root.flickable.height | 54 | root.flickable.contentY -= root.flickable.height | ||
55 | root.flickable.returnToBounds() | 55 | root.flickable.returnToBounds() | ||
56 | } | 56 | } | ||
57 | } | 57 | } | ||
58 | 58 | | |||
59 | readonly property var sClose: Shortcut { | 59 | readonly property var sClose: Shortcut { | ||
60 | sequence: StandardKey.Cancel | 60 | sequence: StandardKey.Cancel | ||
61 | enabled: root.isCurrentPage && applicationWindow().pageStack.depth>=1 | 61 | enabled: root.isCurrentPage && applicationWindow().pageStack.depth>=1 | ||
62 | onActivated: { | 62 | onActivated: { | ||
63 | applicationWindow().pageStack.goBack() | 63 | applicationWindow().pageStack.goBack() | ||
64 | } | 64 | } | ||
65 | } | 65 | } | ||
66 | } | 66 | } |