Changeset View
Changeset View
Standalone View
Standalone View
applets/mediacontroller/contents/ui/ExpandedRepresentation.qml
Show First 20 Lines • Show All 112 Lines • ▼ Show 20 Line(s) | 111 | } else if (event.key === Qt.Key_Home) { | |||
---|---|---|---|---|---|
113 | seekSlider.moved(); | 113 | seekSlider.moved(); | ||
114 | } else if (event.key === Qt.Key_End) { | 114 | } else if (event.key === Qt.Key_End) { | ||
115 | seekSlider.value = seekSlider.to | 115 | seekSlider.value = seekSlider.to | ||
116 | seekSlider.moved(); | 116 | seekSlider.moved(); | ||
117 | } else if (event.key >= Qt.Key_0 && event.key <= Qt.Key_9) { | 117 | } else if (event.key >= Qt.Key_0 && event.key <= Qt.Key_9) { | ||
118 | // jump to percentage, ie. 0 = beginnign, 1 = 10% of total length etc | 118 | // jump to percentage, ie. 0 = beginnign, 1 = 10% of total length etc | ||
119 | seekSlider.value = seekSlider.to * (event.key - Qt.Key_0) / 10 | 119 | seekSlider.value = seekSlider.to * (event.key - Qt.Key_0) / 10 | ||
120 | seekSlider.moved(); | 120 | seekSlider.moved(); | ||
121 | } else if (event.key === Qt.Key_W) { | ||||
ngraham: Why {key W}? W for Walk? Seems kind of arbitrary; "walk" isn't really a word I would associate… | |||||
I agree with your judgement on this. I will look into how I can change this. dylanmcdougall: I agree with your judgement on this. I will look into how I can change this. | |||||
122 | root.action_walk_through() | ||||
121 | } else { | 123 | } else { | ||
122 | event.accepted = false | 124 | event.accepted = false | ||
123 | } | 125 | } | ||
124 | } | 126 | } | ||
125 | } | 127 | } | ||
126 | 128 | | |||
127 | PlasmaComponents3.ComboBox { | 129 | PlasmaComponents3.ComboBox { | ||
128 | id: playerCombo | 130 | id: playerCombo | ||
▲ Show 20 Lines • Show All 305 Lines • Show Last 20 Lines |
Why W? W for Walk? Seems kind of arbitrary; "walk" isn't really a word I would associate with this. In any event this seems like the kind of thing that would benefit from being a global shortcut rather than something that only works when the applet is open and has focus.