2 * Copyright (C) 2013-2016 Canonical, Ltd.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 3.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18import QtQml.StateMachine 1.0 as DSM
19import Ubuntu.Components 1.3
20import Unity.Launcher 0.1
21import Ubuntu.Components.Popups 1.3
29 rotation: inverted ? 180 : 0
32 property bool inverted: false
33 property bool privateMode: false
34 property bool moving: launcherListView.moving || launcherListView.flicking
35 property bool preventHiding: moving || dndArea.draggedIndex >= 0 || quickList.state === "open" || dndArea.pressed
36 || dndArea.containsMouse || dashItem.hovered
37 property int highlightIndex: -2
38 property bool shortcutHintsShown: false
39 readonly property bool quickListOpen: quickList.state === "open"
40 readonly property bool dragging: launcherListView.dragging || dndArea.dragging
42 signal applicationSelected(string appId)
44 signal kbdNavigationCancelled()
47 if (quickList.state === "open") {
52 function highlightNext() {
54 if (highlightIndex >= launcherListView.count) {
57 launcherListView.moveToIndex(Math.max(highlightIndex, 0));
59 function highlightPrevious() {
61 if (highlightIndex <= -2) {
62 highlightIndex = launcherListView.count - 1;
64 launcherListView.moveToIndex(Math.max(highlightIndex, 0));
66 function openQuicklist(index) {
67 quickList.open(index);
68 quickList.selectedIndex = 0;
69 quickList.focus = true;
75 acceptedButtons: Qt.AllButtons
76 onWheel: wheel.accepted = true;
87 objectName: "buttonShowDashHome"
90 color: UbuntuColors.orange
91 readonly property bool highlighted: root.highlightIndex == -1;
94 objectName: "dashItem"
95 width: parent.width * .6
97 anchors.centerIn: parent
98 source: "graphics/home.svg"
100 rotation: root.rotation
106 activeFocusOnPress: false
107 onClicked: root.showDashHome()
111 styleName: "FocusShape"
113 anchors.margins: units.gu(.5)
115 visible: bfb.highlighted
122 anchors.left: parent.left
123 anchors.right: parent.right
124 height: parent.height - dashItem.height - parent.spacing*2
127 id: launcherListViewItem
133 objectName: "launcherListView"
136 topMargin: -extensionSize + width * .15
137 bottomMargin: -extensionSize + width * .15
139 topMargin: extensionSize
140 bottomMargin: extensionSize
141 height: parent.height - dashItem.height - parent.spacing*2
143 cacheBuffer: itemHeight * 3
144 snapMode: interactive ? ListView.SnapToItem : ListView.NoSnap
145 highlightRangeMode: ListView.ApplyRange
146 preferredHighlightBegin: (height - itemHeight) / 2
147 preferredHighlightEnd: (height + itemHeight) / 2
149 // for the single peeking icon, when alert-state is set on delegate
150 property int peekingIndex: -1
152 // The size of the area the ListView is extended to make sure items are not
153 // destroyed when dragging them outside the list. This needs to be at least
154 // itemHeight to prevent folded items from disappearing and DragArea limits
155 // need to be smaller than this size to avoid breakage.
156 property int extensionSize: itemHeight * 3
158 // Workaround: The snap settings in the launcher, will always try to
159 // snap to what we told it to do. However, we want the initial position
160 // of the launcher to not be centered, but instead start with the topmost
161 // item unfolded completely. Lets wait for the ListView to settle after
162 // creation and then reposition it to 0.
163 // https://bugreports.qt-project.org/browse/QTBUG-32251
164 Component.onCompleted: {
171 launcherListView.moveToIndex(0)
175 // The height of the area where icons start getting folded
176 property int foldingStartHeight: itemHeight
177 // The height of the area where the items reach the final folding angle
178 property int foldingStopHeight: foldingStartHeight - itemHeight - spacing
179 property int itemWidth: width * .75
180 property int itemHeight: itemWidth * 15 / 16 + units.gu(1)
181 property int clickFlickSpeed: units.gu(60)
182 property int draggedIndex: dndArea.draggedIndex
183 property real realContentY: contentY - originY + topMargin
184 property int realItemHeight: itemHeight + spacing
186 // In case the start dragging transition is running, we need to delay the
187 // move because the displaced transition would clash with it and cause items
188 // to be moved to wrong places
189 property bool draggingTransitionRunning: false
190 property int scheduledMoveTo: -1
192 UbuntuNumberAnimation {
193 id: snapToBottomAnimation
194 target: launcherListView
196 to: launcherListView.originY + launcherListView.topMargin
199 UbuntuNumberAnimation {
200 id: snapToTopAnimation
201 target: launcherListView
203 to: launcherListView.contentHeight - launcherListView.height + launcherListView.originY - launcherListView.topMargin
206 UbuntuNumberAnimation {
208 objectName: "moveAnimation"
209 target: launcherListView
211 function moveTo(contentY) {
212 from = launcherListView.contentY;
217 function moveToIndex(index) {
218 var totalItemHeight = launcherListView.itemHeight + launcherListView.spacing
219 var itemPosition = index * totalItemHeight;
220 var height = launcherListView.height - launcherListView.topMargin - launcherListView.bottomMargin
221 var distanceToEnd = index == 0 || index == launcherListView.count - 1 ? 0 : totalItemHeight
222 if (itemPosition + totalItemHeight + distanceToEnd > launcherListView.contentY + launcherListView.originY + launcherListView.topMargin + height) {
223 moveAnimation.moveTo(itemPosition + launcherListView.itemHeight - launcherListView.topMargin - height + distanceToEnd - launcherListView.originY);
224 } else if (itemPosition - distanceToEnd < launcherListView.contentY - launcherListView.originY + launcherListView.topMargin) {
225 moveAnimation.moveTo(itemPosition - distanceToEnd - launcherListView.topMargin + launcherListView.originY);
229 displaced: Transition {
230 NumberAnimation { properties: "x,y"; duration: UbuntuAnimation.FastDuration; easing: UbuntuAnimation.StandardEasing }
233 delegate: FoldingLauncherDelegate {
235 objectName: "launcherDelegate" + index
236 // We need the appId in the delegate in order to find
237 // the right app when running autopilot tests for
239 readonly property string appId: model.appId
242 itemHeight: launcherListView.itemHeight
243 itemWidth: launcherListView.itemWidth
248 countVisible: model.countVisible
249 progress: model.progress
250 itemRunning: model.running
251 itemFocused: model.focused
252 inverted: root.inverted
253 alerting: model.alerting
254 highlighted: root.highlightIndex == index
255 shortcutHintShown: root.shortcutHintsShown && index <= 9
256 surfaceCount: model.surfaceCount
259 property bool dragging: false
261 SequentialAnimation {
265 PropertyAction { target: root; property: "visible"; value: (launcher.visibleWidth === 0) ? 1 : 0 }
266 PropertyAction { target: launcherListViewItem; property: "clip"; value: 0 }
268 UbuntuNumberAnimation {
269 target: launcherDelegate
273 to: (units.gu(.5) + launcherListView.width * .5) * (root.inverted ? -1 : 1)
274 duration: UbuntuAnimation.BriskDuration
278 UbuntuNumberAnimation {
279 target: launcherDelegate
284 duration: UbuntuAnimation.BriskDuration
287 PropertyAction { target: launcherListViewItem; property: "clip"; value: 1 }
288 PropertyAction { target: root; property: "visible"; value: (launcher.visibleWidth === 0) ? 0 : 1 }
289 PropertyAction { target: launcherListView; property: "peekingIndex"; value: -1 }
294 if (!dragging && (launcherListView.peekingIndex === -1 || launcher.visibleWidth > 0)) {
295 launcherListView.moveToIndex(index)
296 if (!dragging && launcher.state !== "visible") {
297 peekingAnimation.start()
301 if (launcherListView.peekingIndex === -1) {
302 launcherListView.peekingIndex = index
305 if (launcherListView.peekingIndex === index) {
306 launcherListView.peekingIndex = -1
313 objectName: "dropIndicator"
314 anchors.centerIn: parent
315 height: visible ? units.dp(2) : 0
316 width: parent.width + mainColumn.anchors.leftMargin + mainColumn.anchors.rightMargin
318 source: "graphics/divider-line.png"
324 when: dndArea.selectedItem === launcherDelegate && fakeDragItem.visible && !dragging
326 target: launcherDelegate
334 target: launcherDelegate
339 target: dropIndicator
345 when: dndArea.draggedIndex >= 0 && (dndArea.preDragging || dndArea.dragging || dndArea.postDragging) && dndArea.draggedIndex != index
347 target: launcherDelegate
359 NumberAnimation { properties: "itemOpacity"; duration: UbuntuAnimation.FastDuration }
364 NumberAnimation { properties: "itemOpacity"; duration: UbuntuAnimation.FastDuration }
365 UbuntuNumberAnimation { properties: "angle,offset" }
370 NumberAnimation { properties: "itemOpacity"; duration: UbuntuAnimation.BriskDuration }
371 UbuntuNumberAnimation { properties: "angle,offset" }
374 id: draggingTransition
377 SequentialAnimation {
378 PropertyAction { target: launcherListView; property: "draggingTransitionRunning"; value: true }
380 UbuntuNumberAnimation { properties: "height" }
381 NumberAnimation { target: dropIndicator; properties: "opacity"; duration: UbuntuAnimation.FastDuration }
385 if (launcherListView.scheduledMoveTo > -1) {
386 launcherListView.model.move(dndArea.draggedIndex, launcherListView.scheduledMoveTo)
387 dndArea.draggedIndex = launcherListView.scheduledMoveTo
388 launcherListView.scheduledMoveTo = -1
392 PropertyAction { target: launcherListView; property: "draggingTransitionRunning"; value: false }
398 NumberAnimation { target: dropIndicator; properties: "opacity"; duration: UbuntuAnimation.SnapDuration }
399 NumberAnimation { properties: "itemOpacity"; duration: UbuntuAnimation.BriskDuration }
400 SequentialAnimation {
401 ScriptAction { script: if (index == launcherListView.count-1) launcherListView.flick(0, -launcherListView.clickFlickSpeed); }
402 UbuntuNumberAnimation { properties: "height" }
403 ScriptAction { script: if (index == launcherListView.count-1) launcherListView.flick(0, -launcherListView.clickFlickSpeed); }
404 PropertyAction { target: dndArea; property: "postDragging"; value: false }
405 PropertyAction { target: dndArea; property: "draggedIndex"; value: -1 }
413 objectName: "dndArea"
414 acceptedButtons: Qt.LeftButton | Qt.RightButton
418 topMargin: launcherListView.topMargin
419 bottomMargin: launcherListView.bottomMargin
421 drag.minimumY: -launcherListView.topMargin
422 drag.maximumY: height + launcherListView.bottomMargin
424 property int draggedIndex: -1
425 property var selectedItem
426 property bool preDragging: false
427 property bool dragging: !!selectedItem && selectedItem.dragging
428 property bool postDragging: false
432 // This is a workaround for some issue in the QML ListView:
433 // When calling moveToItem(0), the listview visually positions itself
434 // correctly to display the first item expanded. However, some internal
435 // state seems to not be valid, and the next time the user clicks on it,
436 // it snaps back to the snap boundries before executing the onClicked handler.
437 // This can cause the listview getting stuck in a snapped position where you can't
438 // launch things without first dragging the launcher manually. So lets read the item
439 // angle before that happens and use that angle instead of the one we get in onClicked.
440 property real pressedStartAngle: 0
442 var clickedItem = launcherListView.itemAt(mouseX, mouseY + launcherListView.realContentY)
443 pressedStartAngle = clickedItem.angle;
447 function processPress(mouse) {
448 selectedItem = launcherListView.itemAt(mouse.x, mouse.y + launcherListView.realContentY)
452 var index = Math.floor((mouseY + launcherListView.realContentY) / launcherListView.realItemHeight);
453 var clickedItem = launcherListView.itemAt(mouseX, mouseY + launcherListView.realContentY)
455 // Check if we actually clicked an item or only at the spacing in between
456 if (clickedItem === null) {
460 if (mouse.button & Qt.RightButton) { // context menu
462 quickList.open(index);
468 // First/last item do the scrolling at more than 12 degrees
469 if (index == 0 || index == launcherListView.count - 1) {
470 launcherListView.moveToIndex(index);
471 if (pressedStartAngle <= 12 && pressedStartAngle >= -12) {
472 root.applicationSelected(LauncherModel.get(index).appId);
477 // the rest launches apps up to an angle of 30 degrees
478 if (clickedItem.angle > 30 || clickedItem.angle < -30) {
479 launcherListView.moveToIndex(index);
481 root.applicationSelected(LauncherModel.get(index).appId);
493 function endDrag(dragItem) {
494 var droppedIndex = draggedIndex;
505 selectedItem.dragging = false;
506 selectedItem = undefined;
509 dragItem.target = undefined
511 progressiveScrollingTimer.stop();
512 launcherListView.interactive = true;
513 if (droppedIndex >= launcherListView.count - 2 && postDragging) {
514 snapToBottomAnimation.start();
515 } else if (droppedIndex < 2 && postDragging) {
516 snapToTopAnimation.start();
521 processPressAndHold(mouse, drag);
524 function processPressAndHold(mouse, dragItem) {
525 if (Math.abs(selectedItem.angle) > 30) {
531 draggedIndex = Math.floor((mouse.y + launcherListView.realContentY) / launcherListView.realItemHeight);
533 quickList.open(draggedIndex)
535 launcherListView.interactive = false
537 var yOffset = draggedIndex > 0 ? (mouse.y + launcherListView.realContentY) % (draggedIndex * launcherListView.realItemHeight) : mouse.y + launcherListView.realContentY
539 fakeDragItem.iconName = launcherListView.model.get(draggedIndex).icon
540 fakeDragItem.x = units.gu(0.5)
541 fakeDragItem.y = mouse.y - yOffset + launcherListView.anchors.topMargin + launcherListView.topMargin
542 fakeDragItem.angle = selectedItem.angle * (root.inverted ? -1 : 1)
543 fakeDragItem.offset = selectedItem.offset * (root.inverted ? -1 : 1)
544 fakeDragItem.count = LauncherModel.get(draggedIndex).count
545 fakeDragItem.progress = LauncherModel.get(draggedIndex).progress
546 fakeDragItem.flatten()
547 dragItem.target = fakeDragItem
554 processPositionChanged(mouse)
557 function processPositionChanged(mouse) {
558 if (draggedIndex >= 0) {
559 if (selectedItem && !selectedItem.dragging) {
560 var distance = Math.max(Math.abs(mouse.x - startX), Math.abs(mouse.y - startY))
561 if (!preDragging && distance > units.gu(1.5)) {
563 quickList.state = "";
565 if (distance > launcherListView.itemHeight) {
566 selectedItem.dragging = true
570 if (!selectedItem.dragging) {
574 var itemCenterY = fakeDragItem.y + fakeDragItem.height / 2
576 // Move it down by the the missing size to compensate index calculation with only expanded items
577 itemCenterY += (launcherListView.itemHeight - selectedItem.height) / 2
579 if (mouseY > launcherListView.height - launcherListView.topMargin - launcherListView.bottomMargin - launcherListView.realItemHeight) {
580 progressiveScrollingTimer.downwards = false
581 progressiveScrollingTimer.start()
582 } else if (mouseY < launcherListView.realItemHeight) {
583 progressiveScrollingTimer.downwards = true
584 progressiveScrollingTimer.start()
586 progressiveScrollingTimer.stop()
589 var newIndex = (itemCenterY + launcherListView.realContentY) / launcherListView.realItemHeight
591 if (newIndex > draggedIndex + 1) {
592 newIndex = draggedIndex + 1
593 } else if (newIndex < draggedIndex) {
594 newIndex = draggedIndex -1
599 if (newIndex >= 0 && newIndex < launcherListView.count) {
600 if (launcherListView.draggingTransitionRunning) {
601 launcherListView.scheduledMoveTo = newIndex
603 launcherListView.model.move(draggedIndex, newIndex)
604 draggedIndex = newIndex
611 id: progressiveScrollingTimer
615 property bool downwards: true
618 var minY = -launcherListView.topMargin
619 if (launcherListView.contentY > minY) {
620 launcherListView.contentY = Math.max(launcherListView.contentY - units.dp(2), minY)
623 var maxY = launcherListView.contentHeight - launcherListView.height + launcherListView.topMargin + launcherListView.originY
624 if (launcherListView.contentY < maxY) {
625 launcherListView.contentY = Math.min(launcherListView.contentY + units.dp(2), maxY)
635 objectName: "fakeDragItem"
636 visible: dndArea.draggedIndex >= 0 && !dndArea.postDragging
637 itemWidth: launcherListView.itemWidth
638 itemHeight: launcherListView.itemHeight
641 rotation: root.rotation
643 onVisibleChanged: if (!visible) iconName = "";
646 fakeDragItemAnimation.start();
649 UbuntuNumberAnimation {
650 id: fakeDragItemAnimation
651 target: fakeDragItem;
652 properties: "angle,offset";
661 objectName: "quickListShape"
662 anchors.fill: quickList
663 opacity: quickList.state === "open" ? 0.95 : 0
665 rotation: root.rotation
666 aspect: UbuntuShape.Flat
668 // Denotes that the shape is not animating, to prevent race conditions during testing
669 readonly property bool ready: (visible && (!quickListShapeOpacityFade.running))
671 Behavior on opacity {
672 UbuntuNumberAnimation {
673 id: quickListShapeOpacityFade
677 source: ShaderEffectSource {
678 sourceItem: quickList
685 rightMargin: -units.dp(4)
686 verticalCenter: parent.verticalCenter
687 verticalCenterOffset: -quickList.offset * (root.inverted ? -1 : 1)
691 source: "graphics/quicklist_tooltip.png"
697 anchors.fill: quickListShape
698 enabled: quickList.state == "open" || pressed
699 hoverEnabled: enabled
703 quickList.state = "";
704 quickList.focus = false;
705 root.kbdNavigationCancelled();
708 // Forward for dragging to work when quickList is open
711 var m = mapToItem(dndArea, mouseX, mouseY)
712 dndArea.processPress(m)
716 var m = mapToItem(dndArea, mouseX, mouseY)
717 dndArea.processPressAndHold(m, drag)
721 var m = mapToItem(dndArea, mouseX, mouseY)
722 dndArea.processPositionChanged(m)
726 dndArea.endDrag(drag);
730 dndArea.endDrag(drag);
736 objectName: "quickList"
737 color: theme.palette.normal.background
738 // Because we're setting left/right anchors depending on orientation, it will break the
739 // width setting after rotating twice. This makes sure we also re-apply width on rotation
740 width: root.inverted ? units.gu(30) : units.gu(30)
741 height: quickListColumn.height
742 visible: quickListShape.visible
744 left: root.inverted ? undefined : parent.right
745 right: root.inverted ? parent.left : undefined
748 y: itemCenter - (height / 2) + offset
749 rotation: root.rotation
752 property string appId
754 property int selectedIndex: -1
759 var prevIndex = selectedIndex;
760 selectedIndex = (selectedIndex + 1 < popoverRepeater.count) ? selectedIndex + 1 : 0;
761 while (!popoverRepeater.itemAt(selectedIndex).clickable && selectedIndex != prevIndex) {
762 selectedIndex = (selectedIndex + 1 < popoverRepeater.count) ? selectedIndex + 1 : 0;
764 event.accepted = true;
767 var prevIndex = selectedIndex;
768 selectedIndex = (selectedIndex > 0) ? selectedIndex - 1 : popoverRepeater.count - 1;
769 while (!popoverRepeater.itemAt(selectedIndex).clickable && selectedIndex != prevIndex) {
770 selectedIndex = (selectedIndex > 0) ? selectedIndex - 1 : popoverRepeater.count - 1;
772 event.accepted = true;
776 quickList.selectedIndex = -1;
777 quickList.focus = false;
779 event.accepted = true;
784 if (quickList.selectedIndex >= 0) {
785 LauncherModel.quickListActionInvoked(quickList.appId, quickList.selectedIndex)
787 quickList.selectedIndex = -1;
788 quickList.focus = false;
790 root.kbdNavigationCancelled();
791 event.accepted = true;
797 property int itemCenter: item ? root.mapFromItem(quickList.item, 0, 0).y + (item.height / 2) + quickList.item.offset : units.gu(1)
798 property int offset: itemCenter + (height/2) + units.gu(1) > parent.height ? -itemCenter - (height/2) - units.gu(1) + parent.height :
799 itemCenter - (height/2) < units.gu(1) ? (height/2) - itemCenter + units.gu(1) : 0
801 function open(index) {
802 var itemPosition = index * launcherListView.itemHeight;
803 var height = launcherListView.height - launcherListView.topMargin - launcherListView.bottomMargin
804 item = launcherListView.itemAt(launcherListView.width / 2, itemPosition + launcherListView.itemHeight / 2);
805 quickList.model = launcherListView.model.get(index).quickList;
806 quickList.appId = launcherListView.model.get(index).appId;
807 quickList.state = "open";
808 root.highlightIndex = index;
809 quickList.forceActiveFocus();
814 height: quickListColumn.height
820 var item = quickListColumn.childAt(mouseX, mouseY);
821 if (item.clickable) {
822 quickList.selectedIndex = item.index;
824 quickList.selectedIndex = -1;
832 height: childrenRect.height
836 objectName: "popoverRepeater"
837 model: QuickListProxyModel {
838 source: quickList.model ? quickList.model : null
839 privateMode: root.privateMode
843 readonly property bool clickable: model.clickable
844 readonly property int index: model.index
846 objectName: "quickListEntry" + index
847 selected: index === quickList.selectedIndex
848 height: label.implicitHeight + label.anchors.topMargin + label.anchors.bottomMargin
849 color: model.clickable ? (selected ? theme.palette.highlighted.background : "transparent") : theme.palette.disabled.background
850 highlightColor: !model.clickable ? quickList.color : undefined // make disabled items visually unclickable
851 divider.colorFrom: UbuntuColors.inkstone
852 divider.colorTo: UbuntuColors.inkstone
853 divider.visible: model.hasSeparator
858 anchors.leftMargin: units.gu(3) // 2 GU for checkmark, 3 GU total
859 anchors.rightMargin: units.gu(2)
860 anchors.topMargin: units.gu(2)
861 anchors.bottomMargin: units.gu(2)
862 verticalAlignment: Label.AlignVCenter
864 fontSize: index == 0 ? "medium" : "small"
865 font.weight: index == 0 ? Font.Medium : Font.Light
866 color: model.clickable ? theme.palette.normal.backgroundText : theme.palette.disabled.backgroundText
867 elide: Text.ElideRight
871 if (!model.clickable) {
875 quickList.state = "";
876 // Unsetting model to prevent showing changing entries during fading out
877 // that may happen because of triggering an action.
878 LauncherModel.quickListActionInvoked(quickList.appId, index);
879 quickList.focus = false;
880 root.kbdNavigationCancelled();
881 quickList.model = undefined;
891 objectName: "tooltipShape"
893 visible: tooltipShownState.active
894 rotation: root.rotation
895 y: itemCenter - (height / 2)
898 left: root.inverted ? undefined : parent.right
899 right: root.inverted ? parent.left : undefined
903 readonly property var hoveredItem: dndArea.containsMouse ? launcherListView.itemAt(dndArea.mouseX, dndArea.mouseY + launcherListView.realContentY) : null
904 readonly property int itemCenter: !hoveredItem ? 0 : root.mapFromItem(hoveredItem, 0, 0).y + (hoveredItem.height / 2) + hoveredItem.offset
906 text: !hoveredItem ? "" : hoveredItem.name
910 id: tooltipStateMachine
911 initialState: tooltipHiddenState
915 id: tooltipHiddenState
917 DSM.SignalTransition {
918 targetState: tooltipShownState
919 signal: tooltipShape.hoveredItemChanged
920 // !dndArea.pressed allows us to filter out touch input events
921 guard: tooltipShape.hoveredItem !== null && !dndArea.pressed && !root.moving
926 id: tooltipShownState
928 DSM.SignalTransition {
929 targetState: tooltipHiddenState
930 signal: tooltipShape.hoveredItemChanged
931 guard: tooltipShape.hoveredItem === null
934 DSM.SignalTransition {
935 targetState: tooltipDismissedState
936 signal: dndArea.onPressed
939 DSM.SignalTransition {
940 targetState: tooltipDismissedState
941 signal: quickList.stateChanged
942 guard: quickList.state === "open"
947 id: tooltipDismissedState
949 DSM.SignalTransition {
950 targetState: tooltipHiddenState
951 signal: dndArea.positionChanged
952 guard: quickList.state != "open" && !dndArea.pressed && !dndArea.moving
955 DSM.SignalTransition {
956 targetState: tooltipHiddenState
957 signal: dndArea.exited
958 guard: quickList.state != "open"
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list