Changeset View
Changeset View
Standalone View
Standalone View
lookandfeel/contents/runcommand/RunCommand.qml
Show First 20 Lines • Show All 93 Lines • ▼ Show 20 Line(s) | 80 | if (allowCompletion && length > 0) { | |||
---|---|---|---|---|---|
94 | } | 94 | } | ||
95 | } | 95 | } | ||
96 | } | 96 | } | ||
97 | Keys.onPressed: allowCompletion = (event.key !== Qt.Key_Backspace && event.key !== Qt.Key_Delete) | 97 | Keys.onPressed: allowCompletion = (event.key !== Qt.Key_Backspace && event.key !== Qt.Key_Delete) | ||
98 | Keys.onUpPressed: { | 98 | Keys.onUpPressed: { | ||
99 | if (length === 0) { | 99 | if (length === 0) { | ||
100 | root.showHistory = true | 100 | root.showHistory = true | ||
101 | } | 101 | } | ||
102 | results.forceActiveFocus(); | ||||
102 | } | 103 | } | ||
103 | Keys.onDownPressed: { | 104 | Keys.onDownPressed: { | ||
104 | if (length === 0) { | 105 | if (length === 0) { | ||
105 | root.showHistory = true | 106 | root.showHistory = true | ||
106 | } | 107 | } | ||
108 | results.forceActiveFocus(); | ||||
107 | } | 109 | } | ||
108 | 110 | | |||
109 | Keys.onEscapePressed: { | 111 | Keys.onEscapePressed: { | ||
110 | runnerWindow.visible = false | 112 | runnerWindow.visible = false | ||
111 | } | 113 | } | ||
112 | Keys.forwardTo: [listView, results] | 114 | //Keys.forwardTo: [listView, results] | ||
gladhorn: Left over comment? | |||||
113 | } | 115 | } | ||
114 | PlasmaComponents.ToolButton { | 116 | PlasmaComponents.ToolButton { | ||
115 | iconSource: "window-close" | 117 | iconSource: "window-close" | ||
116 | onClicked: runnerWindow.visible = false | 118 | onClicked: runnerWindow.visible = false | ||
117 | Accessible.name: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Close") | 119 | Accessible.name: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Close") | ||
118 | Accessible.description: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Close Search") | 120 | Accessible.description: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Close Search") | ||
119 | } | 121 | } | ||
120 | } | 122 | } | ||
▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines |
Left over comment?