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 a 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
115 Item { Layout.columnSpan: 2; height: units.gu(2) }
118 text: i18n.tr("Launcher")
119 font.weight: Font.Light
120 color: theme.palette.normal.baseText
125 text: i18n.tr("Super (Hold)")
127 font.weight: Font.Medium
130 text: i18n.tr("Opens the launcher, displays shortcuts.")
132 font.weight: Font.Light
134 Layout.maximumWidth: maxTextSize
138 text: i18n.tr("Alt + F1")
140 font.weight: Font.Medium
143 text: i18n.tr("Opens launcher keyboard navigation mode.")
145 font.weight: Font.Light
147 Layout.maximumWidth: maxTextSize
151 text: i18n.tr("Super + Tab")
153 font.weight: Font.Medium
156 text: i18n.tr("Switches applications via the launcher.")
158 font.weight: Font.Light
160 Layout.maximumWidth: maxTextSize
164 text: i18n.tr("Super + 0 to 9")
166 font.weight: Font.Medium
169 text: i18n.tr("Same as clicking on a launcher icon.")
171 font.weight: Font.Light
173 Layout.maximumWidth: maxTextSize
177 text: i18n.tr("Super + A")
179 font.weight: Font.Medium
182 text: i18n.tr("Opens the Application Drawer.")
184 font.weight: Font.Light
186 Layout.maximumWidth: maxTextSize
191 Item { Layout.columnSpan: 2; height: units.gu(2) }
194 text: i18n.tr("Scopes")
195 font.weight: Font.Light
196 color: theme.palette.normal.baseText
201 text: i18n.tr("Super (Tap)")
203 font.weight: Font.Medium
206 text: i18n.tr("Opens the Scopes home.")
208 font.weight: Font.Light
210 Layout.maximumWidth: maxTextSize
216 columnSpacing: padding
217 Layout.alignment: Qt.AlignTop
222 text: i18n.tr("Switching")
223 font.weight: Font.Light
224 color: theme.palette.normal.baseText
229 text: i18n.tr("Alt + Tab")
231 font.weight: Font.Medium
234 text: i18n.tr("Switches between applications.")
236 font.weight: Font.Light
238 Layout.maximumWidth: maxTextSize
242 text: i18n.tr("Super + W")
244 font.weight: Font.Medium
247 text: i18n.tr("Opens the desktop spread.")
249 font.weight: Font.Light
251 Layout.maximumWidth: maxTextSize
255 text: i18n.tr("Cursor Left or Right")
257 font.weight: Font.Medium
260 text: i18n.tr("Moves the focus.")
262 font.weight: Font.Light
264 Layout.maximumWidth: maxTextSize
269 Item { Layout.columnSpan: 2; height: units.gu(2) }
272 text: i18n.tr("Windows")
273 font.weight: Font.Light
274 color: theme.palette.normal.baseText
279 text: i18n.tr("Ctrl + Super + D")
281 font.weight: Font.Medium
284 text: i18n.tr("Minimizes all windows.")
286 font.weight: Font.Light
288 Layout.maximumWidth: maxTextSize
292 text: i18n.tr("Ctrl + Super + Up")
294 font.weight: Font.Medium
297 text: i18n.tr("Maximizes the current window.")
299 font.weight: Font.Light
301 Layout.maximumWidth: maxTextSize
305 text: i18n.tr("Ctrl + Super + Down")
307 font.weight: Font.Medium
310 text: i18n.tr("Minimizes or restores the current window.")
312 font.weight: Font.Light
314 Layout.maximumWidth: maxTextSize
318 text: i18n.tr("Ctrl + Super + Left or Right")
320 font.weight: Font.Medium
323 text: i18n.tr("Semi-maximizes the current window.")
325 font.weight: Font.Light
327 Layout.maximumWidth: maxTextSize
331 text: i18n.tr("Alt + F4")
333 font.weight: Font.Medium
336 text: i18n.tr("Closes the current window.")
338 font.weight: Font.Light
340 Layout.maximumWidth: maxTextSize
344 Item { Layout.fillHeight: true; Layout.columnSpan: 2 } // spacer