2 * Copyright (C) 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/>.
18 import QtQuick.Layouts 1.1
19 import Ubuntu.Components 1.3
23 width: topLayout.childrenRect.width + topLayout.anchors.leftMargin + topLayout.anchors.rightMargin
24 height: topLayout.childrenRect.height + topLayout.anchors.topMargin + topLayout.anchors.bottomMargin
25 color: theme.palette.normal.background
28 readonly property int maxTextSize: (root.parent.width / 4) - padding
29 readonly property int padding: units.gu(4)
31 Item { // dummy container to break binding loops *and* keep the margins in topLayout working
35 anchors.margins: padding
37 columnSpacing: padding
41 text: i18n.tr("Keyboard Shortcuts")
43 font.weight: Font.Light
49 columnSpacing: units.gu(4)
50 Layout.alignment: Qt.AlignTop
55 text: i18n.tr("Unity 8")
56 font.weight: Font.Light
57 color: theme.palette.normal.baseText
62 text: i18n.tr("PrtScr")
64 font.weight: Font.Medium
67 text: i18n.tr("Takes a screenshot.")
69 font.weight: Font.Light
71 Layout.maximumWidth: maxTextSize
75 text: i18n.tr("Alt + PrtScr")
77 font.weight: Font.Medium
80 text: i18n.tr("Takes a screenshot of the current window.")
82 font.weight: Font.Light
84 Layout.maximumWidth: maxTextSize
88 text: i18n.tr("Super + Space")
90 font.weight: Font.Medium
93 text: i18n.tr("Switches to next keyboard layout.")
95 font.weight: Font.Light
97 Layout.maximumWidth: maxTextSize
101 text: i18n.tr("Super + Shift + Space")
103 font.weight: Font.Medium
106 text: i18n.tr("Switches to previous keyboard layout.")
108 font.weight: Font.Light
110 Layout.maximumWidth: maxTextSize
114 text: i18n.tr("Ctrl + Alt + T")
116 font.weight: Font.Medium
119 text: i18n.tr("Starts the Terminal application.")
121 font.weight: Font.Light
123 Layout.maximumWidth: maxTextSize
128 Item { Layout.columnSpan: 2; height: units.gu(2) }
131 text: i18n.tr("Launcher")
132 font.weight: Font.Light
133 color: theme.palette.normal.baseText
138 text: i18n.tr("Super (Hold)")
140 font.weight: Font.Medium
143 text: i18n.tr("Opens the launcher, displays shortcuts.")
145 font.weight: Font.Light
147 Layout.maximumWidth: maxTextSize
151 text: i18n.tr("Alt + F1")
153 font.weight: Font.Medium
156 text: i18n.tr("Opens launcher keyboard navigation mode.")
158 font.weight: Font.Light
160 Layout.maximumWidth: maxTextSize
164 text: i18n.tr("Super + Tab")
166 font.weight: Font.Medium
169 text: i18n.tr("Switches applications via the launcher.")
171 font.weight: Font.Light
173 Layout.maximumWidth: maxTextSize
177 text: i18n.tr("Super + 1 to 0")
179 font.weight: Font.Medium
182 text: i18n.tr("Same as clicking on a launcher icon.")
184 font.weight: Font.Light
186 Layout.maximumWidth: maxTextSize
190 text: i18n.tr("Super + A")
192 font.weight: Font.Medium
195 text: i18n.tr("Opens the Application Drawer.")
197 font.weight: Font.Light
199 Layout.maximumWidth: maxTextSize
204 Item { Layout.columnSpan: 2; height: units.gu(2) }
207 text: i18n.tr("Scopes")
208 font.weight: Font.Light
209 color: theme.palette.normal.baseText
214 text: i18n.tr("Super (Tap)")
216 font.weight: Font.Medium
219 text: i18n.tr("Opens the Scopes home.")
221 font.weight: Font.Light
223 Layout.maximumWidth: maxTextSize
229 columnSpacing: padding
230 Layout.alignment: Qt.AlignTop
235 text: i18n.tr("Switching")
236 font.weight: Font.Light
237 color: theme.palette.normal.baseText
242 text: i18n.tr("Alt + Tab")
244 font.weight: Font.Medium
247 text: i18n.tr("Switches between applications.")
249 font.weight: Font.Light
251 Layout.maximumWidth: maxTextSize
255 text: i18n.tr("Super + W")
257 font.weight: Font.Medium
260 text: i18n.tr("Opens the desktop spread.")
262 font.weight: Font.Light
264 Layout.maximumWidth: maxTextSize
268 text: i18n.tr("Cursor Left or Right")
270 font.weight: Font.Medium
273 text: i18n.tr("Moves the focus.")
275 font.weight: Font.Light
277 Layout.maximumWidth: maxTextSize
282 Item { Layout.columnSpan: 2; height: units.gu(2) }
285 text: i18n.tr("Windows")
286 font.weight: Font.Light
287 color: theme.palette.normal.baseText
292 text: i18n.tr("Ctrl + Super + D")
294 font.weight: Font.Medium
297 text: i18n.tr("Minimizes all windows.")
299 font.weight: Font.Light
301 Layout.maximumWidth: maxTextSize
305 text: i18n.tr("Ctrl + Super + Up")
307 font.weight: Font.Medium
310 text: i18n.tr("Maximizes the current window.")
312 font.weight: Font.Light
314 Layout.maximumWidth: maxTextSize
318 text: i18n.tr("Ctrl + Super + Down")
320 font.weight: Font.Medium
323 text: i18n.tr("Minimizes or restores the current window.")
325 font.weight: Font.Light
327 Layout.maximumWidth: maxTextSize
331 text: i18n.tr("Ctrl + Super + Left or Right")
333 font.weight: Font.Medium
336 text: i18n.tr("Semi-maximizes the current window.")
338 font.weight: Font.Light
340 Layout.maximumWidth: maxTextSize
344 text: i18n.tr("Alt + F4")
346 font.weight: Font.Medium
349 text: i18n.tr("Closes the current window.")
351 font.weight: Font.Light
353 Layout.maximumWidth: maxTextSize
357 Item { Layout.fillHeight: true; Layout.columnSpan: 2 } // spacer