1 | /****************************************************************************
|
---|
2 | **
|
---|
3 | ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
|
---|
4 | ** All rights reserved.
|
---|
5 | ** Contact: Nokia Corporation ([email protected])
|
---|
6 | **
|
---|
7 | ** This file is part of the documentation of the Qt Toolkit.
|
---|
8 | **
|
---|
9 | ** $QT_BEGIN_LICENSE:FDL$
|
---|
10 | ** Commercial Usage
|
---|
11 | ** Licensees holding valid Qt Commercial licenses may use this file in
|
---|
12 | ** accordance with the Qt Commercial License Agreement provided with the
|
---|
13 | ** Software or, alternatively, in accordance with the terms contained in a
|
---|
14 | ** written agreement between you and Nokia.
|
---|
15 | **
|
---|
16 | ** GNU Free Documentation License
|
---|
17 | ** Alternatively, this file may be used under the terms of the GNU Free
|
---|
18 | ** Documentation License version 1.3 as published by the Free Software
|
---|
19 | ** Foundation and appearing in the file included in the packaging of this
|
---|
20 | ** file.
|
---|
21 | **
|
---|
22 | ** If you have questions regarding the use of this file, please contact
|
---|
23 | ** Nokia at [email protected].
|
---|
24 | ** $QT_END_LICENSE$
|
---|
25 | **
|
---|
26 | ****************************************************************************/
|
---|
27 |
|
---|
28 | /*!
|
---|
29 | \page accelerators.html
|
---|
30 | \title Standard Accelerator Keys
|
---|
31 | \brief Recommended accelerator keys.
|
---|
32 |
|
---|
33 | \ingroup best-practices
|
---|
34 |
|
---|
35 | Applications invariably need to define accelerator keys for actions.
|
---|
36 | Qt fully supports accelerators, for example with \l Q3Accel::shortcutKey().
|
---|
37 |
|
---|
38 | Here are Microsoft's recommendations for accelerator keys, with
|
---|
39 | comments about the Open Group's recommendations where they exist
|
---|
40 | and differ. For most commands, the Open Group either has no advice or
|
---|
41 | agrees with Microsoft.
|
---|
42 |
|
---|
43 | The emboldened letter plus Alt is Microsoft's recommended choice, and
|
---|
44 | we recommend supporting it. For an Apply button, for example, we
|
---|
45 | recommend QAbstractButton::setText(\link QWidget::tr() tr \endlink("&Apply"));
|
---|
46 |
|
---|
47 | If you have conflicting commands (e.g. About and Apply buttons in the
|
---|
48 | same dialog), you must decide for yourself.
|
---|
49 |
|
---|
50 | \list
|
---|
51 | \i \bold{\underline{A}}bout
|
---|
52 | \i Always on \bold{\underline{T}}op
|
---|
53 | \i \bold{\underline{A}}pply
|
---|
54 | \i \bold{\underline{B}}ack
|
---|
55 | \i \bold{\underline{B}}rowse
|
---|
56 | \i \bold{\underline{C}}lose (CDE: Alt+F4; Alt+F4 is "close window" in Windows)
|
---|
57 | \i \bold{\underline{C}}opy (CDE: Ctrl+C, Ctrl+Insert)
|
---|
58 | \i \bold{\underline{C}}opy Here
|
---|
59 | \i Create \bold{\underline{S}}hortcut
|
---|
60 | \i Create \bold{\underline{S}}hortcut Here
|
---|
61 | \i Cu\bold{\underline{t}}
|
---|
62 | \i \bold{\underline{D}}elete
|
---|
63 | \i \bold{\underline{E}}dit
|
---|
64 | \i \bold{\underline{E}}xit (CDE: E\bold{\underline{x}}it)
|
---|
65 | \i \bold{\underline{E}}xplore
|
---|
66 | \i \bold{\underline{F}}ile
|
---|
67 | \i \bold{\underline{F}}ind
|
---|
68 | \i \bold{\underline{H}}elp
|
---|
69 | \i Help \bold{\underline{T}}opics
|
---|
70 | \i \bold{\underline{H}}ide
|
---|
71 | \i \bold{\underline{I}}nsert
|
---|
72 | \i Insert \bold{\underline{O}}bject
|
---|
73 | \i \bold{\underline{L}}ink Here
|
---|
74 | \i Ma\bold{\underline{x}}imize
|
---|
75 | \i Mi\bold{\underline{n}}imize
|
---|
76 | \i \bold{\underline{M}}ove
|
---|
77 | \i \bold{\underline{M}}ove Here
|
---|
78 | \i \bold{\underline{N}}ew
|
---|
79 | \i \bold{\underline{N}}ext
|
---|
80 | \i \bold{\underline{N}}o
|
---|
81 | \i \bold{\underline{O}}pen
|
---|
82 | \i Open \bold{\underline{W}}ith
|
---|
83 | \i Page Set\bold{\underline{u}}p
|
---|
84 | \i \bold{\underline{P}}aste
|
---|
85 | \i Paste \bold{\underline{L}}ink
|
---|
86 | \i Paste \bold{\underline{S}}hortcut
|
---|
87 | \i Paste \bold{\underline{S}}pecial
|
---|
|
---|