<class name="QKeySequence" doc="/**
&lt;p&gt;The &lt;a href=&quot;QKeySequence.html#QKeySequence(java.lang.String)&quot;&gt;&lt;tt&gt;QKeySequence&lt;/tt&gt;&lt;/a&gt; class encapsulates a key sequence as used by shortcuts.&lt;/p&gt;
&lt;p&gt;In its most common form, a key sequence describes a combination of keys that must be used together to perform some action. Key sequences are used with &lt;a href=&quot;QAction.html&quot;&gt;&lt;tt&gt;QAction&lt;/tt&gt;&lt;/a&gt; objects to specify which keyboard shortcuts can be used to trigger actions.&lt;/p&gt;
&lt;p&gt;Key sequences can be constructed for use as keyboard shortcuts in three different ways:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;For standard shortcuts, a standard key&lt;/tt&gt; can be used to request the platform-specific key sequence associated with each shortcut.&lt;/li&gt;
&lt;li&gt;For custom shortcuts, human-readable strings such as &amp;quot;Ctrl+X&amp;quot; can be used, and these can be translated into the appropriate shortcuts for users of different languages. Translations are made in the &amp;quot;&lt;a href=&quot;QShortcut.html&quot;&gt;&lt;tt&gt;QShortcut&lt;/tt&gt;&lt;/a&gt;&amp;quot; context.&lt;/li&gt;
&lt;li&gt;For hard-coded shortcuts, integer key codes can be specified with a combination of values defined by the Qt::Key and Qt::Modifier enum values. Each key code consists of a single Qt::Key value and zero or more modifiers, such as Qt::SHIFT, Qt::CTRL, Qt::ALT and Qt::META.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For example, &lt;b&gt;Ctrl P&lt;/b&gt; might be a sequence used as a shortcut for printing a document, and can be specified in any of the following ways:&lt;/p&gt;
&lt;pre&gt;    QKeySequence(QKeySequence::Print}
    QKeySequence(tr(&amp;quot;Ctrl+P&amp;quot;))
    QKeySequence(tr(&amp;quot;Ctrl+p&amp;quot;))
    QKeySequence(Qt::CTRL + Qt::Key_P)&lt;/pre&gt;
&lt;p&gt;Note that, for letters, the case used in the specification string does not matter. In the above examples, the user does not need to hold down the &lt;b&gt;Shift&lt;/b&gt; key to activate a shortcut specified with &amp;quot;Ctrl+P&amp;quot;. However, for other keys, the use of &lt;b&gt;Shift&lt;/b&gt; as an unspecified extra modifier key can lead to confusion for users of an application whose keyboards have different layouts to those used by the developers. See the &lt;a href=&quot;QKeySequence.html#keyboard-layout-issues&quot;&gt;Keyboard Layout Issues&lt;/tt&gt;&lt;/a&gt; section below for more details.&lt;/p&gt;
&lt;p&gt;It is preferable to use standard shortcuts where possible. When creating key sequences for non-standard shortcuts, you should use human-readable strings in preference to hard-coded integer values.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QKeySequence.html#QKeySequence(java.lang.String)&quot;&gt;&lt;tt&gt;QKeySequence&lt;/tt&gt;&lt;/a&gt; objects can be cast to a &lt;a href=&quot;%2E%2E/porting4.html#qstring&quot;&gt;&lt;tt&gt;QString&lt;/tt&gt;&lt;/a&gt; to obtain a human-readable translated version of the sequence. Similarly, the &lt;a href=&quot;QKeySequence.html#toString(com.trolltech.qt.gui.QKeySequence.SequenceFormat)&quot;&gt;&lt;tt&gt;toString&lt;/tt&gt;&lt;/a&gt; function produces human-readable strings for use in menus. On Mac OS X, the appropriate symbols are used to describe keyboard shortcuts using special keys on the Macintosh keyboard.&lt;/p&gt;
&lt;p&gt;An alternative way to specify hard-coded key codes is to use the Unicode code point of the character; for example, 'A' gives the same key sequence as Qt::Key_A.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Note:&lt;/b&gt; On Mac OS X, references to &amp;quot;Ctrl&amp;quot;, Qt::CTRL, Qt::Control and Qt::ControlModifier correspond to the &lt;b&gt;Command&lt;/b&gt; keys on the Macintosh keyboard, and references to &amp;quot;Meta&amp;quot;, Qt::META, Qt::Meta and Qt::MetaModifier correspond to the &lt;b&gt;Control&lt;/b&gt; keys. Developers on Mac OS X can use the same shortcut descriptions across all platforms, and their applications will automatically work as expected on Mac OS X.&lt;/p&gt;
&lt;a name=&quot;standard-shortcuts&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Standard Shortcuts&lt;/h3&gt;
&lt;p&gt;&lt;a href=&quot;QKeySequence.html#QKeySequence(java.lang.String)&quot;&gt;&lt;tt&gt;QKeySequence&lt;/tt&gt;&lt;/a&gt; defines many &lt;a href=&quot;QKeySequence.html#StandardKey-enum&quot;&gt;&lt;tt&gt;StandardKey&lt;/tt&gt;&lt;/a&gt; standard keyboard shortcuts to reduce the amount of effort required when setting up actions in a typical application. The table below shows some common key sequences that are often used for these standard shortcuts by applications on four widely-used platforms. Note that on Mac OS X, the &lt;b&gt;Ctrl&lt;/b&gt; value corresponds to the &lt;b&gt;Command&lt;/b&gt; keys on the Macintosh keyboard, and the &lt;b&gt;Meta&lt;/b&gt; value corresponds to the &lt;b&gt;Control&lt;/b&gt; keys.&lt;/p&gt;
&lt;p&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;thead&gt;&lt;tr valign=&quot;top&quot; class=&quot;qt-style&quot;&gt;&lt;th&gt;&lt;a href=&quot;QKeySequence.html#StandardKey-enum&quot;&gt;&lt;tt&gt;StandardKey&lt;/tt&gt;&lt;/a&gt;&lt;/th&gt;&lt;th&gt;Windows&lt;/th&gt;&lt;th&gt;Mac OS X&lt;/th&gt;&lt;th&gt;KDE&lt;/th&gt;&lt;th&gt;GNOME&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;a href=&quot;QKeySequence.html#StandardKey-enum&quot;&gt;&lt;tt&gt;HelpContents&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;F1&lt;/td&gt;&lt;td&gt;Ctrl+?&lt;/td&gt;&lt;td&gt;F1&lt;/td&gt;&lt;td&gt;F1&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;&lt;a href=&quot;QKeySequence.html#StandardKey-enum&quot;&gt;&lt;tt&gt;WhatsThis&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Shift+F1&lt;/td&gt;&lt;td&gt;Shift+F1&lt;/td&gt;&lt;td&gt;Shift+F1&lt;/td&gt;&lt;td&gt;Shift+F1&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;Open&lt;/td&gt;&lt;td&gt;Ctrl+O&lt;/td&gt;&lt;td&gt;Ctrl+O&lt;/td&gt;&lt;td&gt;Ctrl+O&lt;/td&gt;&lt;td&gt;Ctrl+O&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;Close&lt;/td&gt;&lt;td&gt;Ctrl+F4, Ctrl+W&lt;/td&gt;&lt;td&gt;Ctrl+W, Ctrl+F4&lt;/td&gt;&lt;td&gt;Ctrl+W&lt;/td&gt;&lt;td&gt;Ctrl+W&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;Save&lt;/td&gt;&lt;td&gt;Ctrl+S&lt;/td&gt;&lt;td&gt;Ctrl+S&lt;/td&gt;&lt;td&gt;Ctrl+S&lt;/td&gt;&lt;td&gt;Ctrl+S&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;New&lt;/td&gt;&lt;td&gt;Ctrl+N&lt;/td&gt;&lt;td&gt;Ctrl+N&lt;/td&gt;&lt;td&gt;Ctrl+N&lt;/td&gt;&lt;td&gt;Ctrl+N&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;Delete&lt;/td&gt;&lt;td&gt;Del&lt;/td&gt;&lt;td&gt;Del, Meta+D&lt;/td&gt;&lt;td&gt;Del, Ctrl+D&lt;/td&gt;&lt;td&gt;Del, Ctrl+D&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;Cut&lt;/td&gt;&lt;td&gt;Ctrl+X, Shift+Del&lt;/td&gt;&lt;td&gt;Ctrl+X&lt;/td&gt;&lt;td&gt;Ctrl+X, F20, Shift+Del&lt;/td&gt;&lt;td&gt;Ctrl+X, F20, Shift+Del&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;Copy&lt;/td&gt;&lt;td&gt;Ctrl+C, Ctrl+Ins&lt;/td&gt;&lt;td&gt;Ctrl+C&lt;/td&gt;&lt;td&gt;Ctrl+C, F16, Ctrl+Ins&lt;/td&gt;&lt;td&gt;Ctrl+C, F16, Ctrl+Ins&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;Paste&lt;/td&gt;&lt;td&gt;Ctrl+V, Shift+Ins&lt;/td&gt;&lt;td&gt;Ctrl+V&lt;/td&gt;&lt;td&gt;Ctrl+V, F18, Shift+Ins&lt;/td&gt;&lt;td&gt;Ctrl+V, F18, Shift+Ins&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;Undo&lt;/td&gt;&lt;td&gt;Ctrl+Z, Alt+Backspace&lt;/td&gt;&lt;td&gt;Ctrl+Z&lt;/td&gt;&lt;td&gt;Ctrl+Z, F14&lt;/td&gt;&lt;td&gt;Ctrl+Z, F14&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;Redo&lt;/td&gt;&lt;td&gt;Ctrl+Y, Shift+Ctrl+Z, Alt+Shift+Backspace&lt;/td&gt;&lt;td&gt;Ctrl+Shift+Z, Ctrl+Y&lt;/td&gt;&lt;td&gt;Ctrl+Shift+Z&lt;/td&gt;&lt;td&gt;Ctrl+Shift+Z&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;Back&lt;/td&gt;&lt;td&gt;Alt+Left, Backspace&lt;/td&gt;&lt;td&gt;Ctrl+[&lt;/td&gt;&lt;td&gt;Alt+Left&lt;/td&gt;&lt;td&gt;Alt+Left&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;Forward&lt;/td&gt;&lt;td&gt;Alt+Right, Shift+Backspace&lt;/td&gt;&lt;td&gt;Ctrl+]&lt;/td&gt;&lt;td&gt;Alt+Right&lt;/td&gt;&lt;td&gt;Alt+Right&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;Refresh&lt;/td&gt;&lt;td&gt;F5&lt;/td&gt;&lt;td&gt;F5&lt;/td&gt;&lt;td&gt;F5&lt;/td&gt;&lt;td&gt;Ctrl+R, F5&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;&lt;a href=&quot;QKeySequence.html#StandardKey-enum&quot;&gt;&lt;tt&gt;ZoomIn&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Ctrl+Plus&lt;/td&gt;&lt;td&gt;Ctrl+Plus&lt;/td&gt;&lt;td&gt;Ctrl+Plus&lt;/td&gt;&lt;td&gt;Ctrl+Plus&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;a href=&quot;QKeySequence.html#StandardKey-enum&quot;&gt;&lt;tt&gt;ZoomOut&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Ctrl+Minus&lt;/td&gt;&lt;td&gt;Ctrl+Minus&lt;/td&gt;&lt;td&gt;Ctrl+Minus&lt;/td&gt;&lt;td&gt;Ctrl+Minus&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;Print&lt;/td&gt;&lt;td&gt;Ctrl+P&lt;/td&gt;&lt;td&gt;Ctrl+P&lt;/td&gt;&lt;td&gt;Ctrl+P&lt;/td&gt;&lt;td&gt;Ctrl+P&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;a href=&quot;QKeySequence.html#StandardKey-enum&quot;&gt;&lt;tt&gt;AddTab&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Ctrl+T&lt;/td&gt;&lt;td&gt;Ctrl+T&lt;/td&gt;&lt;td&gt;Ctrl+Shift+N, Ctrl+T&lt;/td&gt;&lt;td&gt;Ctrl+T&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;&lt;a href=&quot;QKeySequence.html#StandardKey-enum&quot;&gt;&lt;tt&gt;NextChild&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Ctrl+Tab, Forward, Ctrl+F6&lt;/td&gt;&lt;td&gt;Ctrl+}, Forward, Ctrl+Tab&lt;/td&gt;&lt;td&gt;Ctrl+Tab, Forward, Ctrl+Comma&lt;/td&gt;&lt;td&gt;Ctrl+Tab, Forward&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;a href=&quot;QKeySequence.html#StandardKey-enum&quot;&gt;&lt;tt&gt;PreviousChild&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Ctrl+Shift+Tab, Back, Ctrl+Shift+F6&lt;/td&gt;&lt;td&gt;Ctrl+{, Back, Ctrl+Shift+Tab&lt;/td&gt;&lt;td&gt;Ctrl+Shift+Tab, Back, Ctrl+Period&lt;/td&gt;&lt;td&gt;Ctrl+Shift+Tab, Back&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;Find&lt;/td&gt;&lt;td&gt;Ctrl+F&lt;/td&gt;&lt;td&gt;Ctrl+F&lt;/td&gt;&lt;td&gt;Ctrl+F&lt;/td&gt;&lt;td&gt;Ctrl+F&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;a href=&quot;QKeySequence.html#StandardKey-enum&quot;&gt;&lt;tt&gt;FindNext&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;F3, Ctrl+G&lt;/td&gt;&lt;td&gt;Ctrl+G&lt;/td&gt;&lt;td&gt;F3&lt;/td&gt;&lt;td&gt;Ctrl+G, F3&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;&lt;a href=&quot;QKeySequence.html#StandardKey-enum&quot;&gt;&lt;tt&gt;FindPrevious&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Shift+F3, Ctrl+Shift+G&lt;/td&gt;&lt;td&gt;Ctrl+Shift+G&lt;/td&gt;&lt;td&gt;Shift+F3&lt;/td&gt;&lt;td&gt;Ctrl+Shift+G, F3&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;Replace&lt;/td&gt;&lt;td&gt;Ctrl+H&lt;/td&gt;&lt;td&gt;(none)&lt;/td&gt;&lt;td&gt;Ctrl+R&lt;/td&gt;&lt;td&gt;Ctrl+H&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;&lt;a href=&quot;QKeySequence.html#StandardKey-enum&quot;&gt;&lt;tt&gt;SelectAll&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Ctrl+A&lt;/td&gt;&lt;td&gt;Ctrl+A&lt;/td&gt;&lt;td&gt;Ctrl+A&lt;/td&gt;&lt;td&gt;Ctrl+A&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;Bold&lt;/td&gt;&lt;td&gt;Ctrl+B&lt;/td&gt;&lt;td&gt;Ctrl+B&lt;/td&gt;&lt;td&gt;Ctrl+B&lt;/td&gt;&lt;td&gt;Ctrl+B&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;Italic&lt;/td&gt;&lt;td&gt;Ctrl+I&lt;/td&gt;&lt;td&gt;Ctrl+I&lt;/td&gt;&lt;td&gt;Ctrl+I&lt;/td&gt;&lt;td&gt;Ctrl+I&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;Underline&lt;/td&gt;&lt;td&gt;Ctrl+U&lt;/td&gt;&lt;td&gt;Ctrl+U&lt;/td&gt;&lt;td&gt;Ctrl+U&lt;/td&gt;&lt;td&gt;Ctrl+U&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;&lt;a href=&quot;QKeySequence.html#StandardKey-enum&quot;&gt;&lt;tt&gt;MoveToNextChar&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Right&lt;/td&gt;&lt;td&gt;Right&lt;/td&gt;&lt;td&gt;Right&lt;/td&gt;&lt;td&gt;Right&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;a href=&quot;QKeySequence.html#StandardKey-enum&quot;&gt;&lt;tt&gt;MoveToPreviousChar&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Left&lt;/td&gt;&lt;td&gt;Left&lt;/td&gt;&lt;td&gt;Left&lt;/td&gt;&lt;td&gt;Left&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;&lt;a href=&quot;QKeySequence.html#StandardKey-enum&quot;&gt;&lt;tt&gt;MoveToNextWord&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Ctrl+Right&lt;/td&gt;&lt;td&gt;Alt+Right&lt;/td&gt;&lt;td&gt;Ctrl+Right&lt;/td&gt;&lt;td&gt;Ctrl+Right&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;a href=&quot;QKeySequence.html#StandardKey-enum&quot;&gt;&lt;tt&gt;MoveToPreviousWord&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Ctrl+Left&lt;/td&gt;&lt;td&gt;Alt+Left&lt;/td&gt;&lt;td&gt;Ctrl+Left&lt;/td&gt;&lt;td&gt;Ctrl+Left&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;&lt;a href=&quot;QKeySequence.html#StandardKey-enum&quot;&gt;&lt;tt&gt;MoveToNextLine&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Down&lt;/td&gt;&lt;td&gt;Down&lt;/td&gt;&lt;td&gt;Down&lt;/td&gt;&lt;td&gt;Down&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;a href=&quot;QKeySequence.html#StandardKey-enum&quot;&gt;&lt;tt&gt;MoveToPreviousLine&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Up&lt;/td&gt;&lt;td&gt;Up&lt;/td&gt;&lt;td&gt;Up&lt;/td&gt;&lt;td&gt;Up&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;&lt;a href=&quot;QKeySequence.html#StandardKey-enum&quot;&gt;&lt;tt&gt;MoveToNextPage&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;PgDown&lt;/td&gt;&lt;td&gt;PgDown, Alt+PgDown, Meta+Down, Meta+PgDown&lt;/td&gt;&lt;td&gt;PgDown&lt;/td&gt;&lt;td&gt;PgDown&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;a href=&quot;QKeySequence.html#StandardKey-enum&quot;&gt;&lt;tt&gt;MoveToPreviousPage&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;PgUp&lt;/td&gt;&lt;td&gt;PgUp, Alt+PgUp, Meta+Up, Meta+PgUp&lt;/td&gt;&lt;td&gt;PgUp&lt;/td&gt;&lt;td&gt;PgUp&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;&lt;a href=&quot;QKeySequence.html#StandardKey-enum&quot;&gt;&lt;tt&gt;MoveToStartOfLine&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Home&lt;/td&gt;&lt;td&gt;Ctrl+Left, Meta+Left&lt;/td&gt;&lt;td&gt;Home&lt;/td&gt;&lt;td&gt;Home&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;a href=&quot;QKeySequence.html#StandardKey-enum&quot;&gt;&lt;tt&gt;MoveToEndOfLine&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;End&lt;/td&gt;&lt;td&gt;Ctrl+Right, Meta+Right&lt;/td&gt;&lt;td&gt;End&lt;/td&gt;&lt;td&gt;End&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;&lt;a href=&quot;QKeySequence.html#StandardKey-enum&quot;&gt;&lt;tt&gt;MoveToStartOfBlock&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;(none)&lt;/td&gt;&lt;td&gt;Alt+Up, Meta+A&lt;/td&gt;&lt;td&gt;(none)&lt;/td&gt;&lt;td&gt;(none)&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;a href=&quot;QKeySequence.html#StandardKey-enum&quot;&gt;&lt;tt&gt;MoveToEndOfBlock&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;(none)&lt;/td&gt;&lt;td&gt;Alt+Down, Meta+E&lt;/td&gt;&lt;td&gt;(none)&lt;/td&gt;&lt;td&gt;(none)&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;&lt;a href=&quot;QKeySequence.html#StandardKey-enum&quot;&gt;&lt;tt&gt;MoveToStartOfDocument&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Ctrl+Home&lt;/td&gt;&lt;td&gt;Ctrl+Up, Home&lt;/td&gt;&lt;td&gt;Ctrl+Home&lt;/td&gt;&lt;td&gt;Ctrl+Home&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;a href=&quot;QKeySequence.html#StandardKey-enum&quot;&gt;&lt;tt&gt;MoveToEndOfDocument&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Ctrl+End&lt;/td&gt;&lt;td&gt;Ctrl+Down, End&lt;/td&gt;&lt;td&gt;Ctrl+End&lt;/td&gt;&lt;td&gt;Ctrl+End&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;&lt;a href=&quot;QKeySequence.html#StandardKey-enum&quot;&gt;&lt;tt&gt;SelectNextChar&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Shift+Right&lt;/td&gt;&lt;td&gt;Shift+Right&lt;/td&gt;&lt;td&gt;Shift+Right&lt;/td&gt;&lt;td&gt;Shift+Right&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;a href=&quot;QKeySequence.html#StandardKey-enum&quot;&gt;&lt;tt&gt;SelectPreviousChar&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Shift+Left&lt;/td&gt;&lt;td&gt;Shift+Left&lt;/td&gt;&lt;td&gt;Shift+Left&lt;/td&gt;&lt;td&gt;Shift?left&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;&lt;a href=&quot;QKeySequence.html#StandardKey-enum&quot;&gt;&lt;tt&gt;SelectNextWord&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Ctrl+Shift+Right&lt;/td&gt;&lt;td&gt;Alt+Shift+Right&lt;/td&gt;&lt;td&gt;Ctrl+Shift+Right&lt;/td&gt;&lt;td&gt;Ctrl+Shift+Right&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;a href=&quot;QKeySequence.html#StandardKey-enum&quot;&gt;&lt;tt&gt;SelectPreviousWord&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Ctrl+Shift+Left&lt;/td&gt;&lt;td&gt;Alt+Shift+Left&lt;/td&gt;&lt;td&gt;Ctrl+Shift+Left&lt;/td&gt;&lt;td&gt;Ctrl+Shift+Left&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;&lt;a href=&quot;QKeySequence.html#StandardKey-enum&quot;&gt;&lt;tt&gt;SelectNextLine&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Shift+Down&lt;/td&gt;&lt;td&gt;Shift+Down&lt;/td&gt;&lt;td&gt;Shift+Down&lt;/td&gt;&lt;td&gt;Shift+Down&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;a href=&quot;QKeySequence.html#StandardKey-enum&quot;&gt;&lt;tt&gt;SelectPreviousLine&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Shift+Up&lt;/td&gt;&lt;td&gt;Shift+Up&lt;/td&gt;&lt;td&gt;Shift+Up&lt;/td&gt;&lt;td&gt;Shift+Up&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;&lt;a href=&quot;QKeySequence.html#StandardKey-enum&quot;&gt;&lt;tt&gt;SelectNextPage&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Shift+PgDown&lt;/td&gt;&lt;td&gt;Shift+PgDown&lt;/td&gt;&lt;td&gt;Shift+PgDown&lt;/td&gt;&lt;td&gt;Shift+PgDown&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;a href=&quot;QKeySequence.html#StandardKey-enum&quot;&gt;&lt;tt&gt;SelectPreviousPage&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Shift+PgUp&lt;/td&gt;&lt;td&gt;Shift+PgUp&lt;/td&gt;&lt;td&gt;Shift+PgUp&lt;/td&gt;&lt;td&gt;Shift+PgUp&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;&lt;a href=&quot;QKeySequence.html#StandardKey-enum&quot;&gt;&lt;tt&gt;SelectStartOfLine&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Shift+Home&lt;/td&gt;&lt;td&gt;Ctrl+Shift+Left&lt;/td&gt;&lt;td&gt;Shift+Home&lt;/td&gt;&lt;td&gt;Shift+Home&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;a href=&quot;QKeySequence.html#StandardKey-enum&quot;&gt;&lt;tt&gt;SelectEndOfLine&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Shift+End&lt;/td&gt;&lt;td&gt;Ctrl+Shift+Right&lt;/td&gt;&lt;td&gt;Shift+End&lt;/td&gt;&lt;td&gt;Shift+End&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;&lt;a href=&quot;QKeySequence.html#StandardKey-enum&quot;&gt;&lt;tt&gt;SelectStartOfBlock&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;(none)&lt;/td&gt;&lt;td&gt;Alt+Shift+Up&lt;/td&gt;&lt;td&gt;(none)&lt;/td&gt;&lt;td&gt;(none)&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;a href=&quot;QKeySequence.html#StandardKey-enum&quot;&gt;&lt;tt&gt;SelectEndOfBlock&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;(none)&lt;/td&gt;&lt;td&gt;Alt+Shift+Down&lt;/td&gt;&lt;td&gt;(none)&lt;/td&gt;&lt;td&gt;(none)&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;&lt;a href=&quot;QKeySequence.html#StandardKey-enum&quot;&gt;&lt;tt&gt;SelectStartOfDocument&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Ctrl+Shift+Home&lt;/td&gt;&lt;td&gt;Ctrl+Shift+Up, Shift+Home&lt;/td&gt;&lt;td&gt;Ctrl+Shift+Home&lt;/td&gt;&lt;td&gt;Ctrl+Shift+Home&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;a href=&quot;QKeySequence.html#StandardKey-enum&quot;&gt;&lt;tt&gt;SelectEndOfDocument&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Ctrl+Shift+End&lt;/td&gt;&lt;td&gt;Ctrl+Shift+Down, Shift+End&lt;/td&gt;&lt;td&gt;Ctrl+Shift+End&lt;/td&gt;&lt;td&gt;Ctrl+Shift+End&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;&lt;a href=&quot;QKeySequence.html#StandardKey-enum&quot;&gt;&lt;tt&gt;DeleteStartOfWord&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Ctrl+Backspace&lt;/td&gt;&lt;td&gt;Alt+Backspace&lt;/td&gt;&lt;td&gt;Ctrl+Backspace&lt;/td&gt;&lt;td&gt;Ctrl+Backspace&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;a href=&quot;QKeySequence.html#StandardKey-enum&quot;&gt;&lt;tt&gt;DeleteEndOfWord&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Ctrl+Del&lt;/td&gt;&lt;td&gt;(none)&lt;/td&gt;&lt;td&gt;Ctrl+Del&lt;/td&gt;&lt;td&gt;Ctrl+Del&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;&lt;a href=&quot;QKeySequence.html#StandardKey-enum&quot;&gt;&lt;tt&gt;DeleteEndOfLine&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;(none)&lt;/td&gt;&lt;td&gt;(none)&lt;/td&gt;&lt;td&gt;Ctrl+K&lt;/td&gt;&lt;td&gt;Ctrl+K&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
&lt;p&gt;Note that, since the key sequences used for the standard shortcuts differ between platforms, you still need to test your shortcuts on each platform to ensure that you do not unintentionally assign the same key sequence to many actions.&lt;/p&gt;
&lt;a name=&quot;keyboard-layout-issues&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Keyboard Layout Issues&lt;/h3&gt;
&lt;p&gt;Many key sequence specifications are chosen by developers based on the layout of certain types of keyboard, rather than choosing keys that represent the first letter of an action's name, such as &lt;b&gt;Ctrl S&lt;/b&gt; (&amp;quot;Ctrl+S&amp;quot;) or &lt;b&gt;Ctrl C&lt;/b&gt; (&amp;quot;Ctrl+C&amp;quot;). Additionally, because certain symbols can only be entered with the help of modifier keys on certain keyboard layouts, key sequences intended for use with one keyboard layout may map to a different key, map to no keys at all, or require an additional modifier key to be used on different keyboard layouts.&lt;/p&gt;
&lt;p&gt;For example, the shortcuts, &lt;b&gt;Ctrl plus&lt;/b&gt; and &lt;b&gt;Ctrl minus&lt;/b&gt;, are often used as shortcuts for zoom operations in graphics applications, and these may be specified as &amp;quot;Ctrl++&amp;quot; and &amp;quot;Ctrl+-&amp;quot; respectively. However, the way these shortcuts are specified and interpreted depends on the keyboard layout. Users of Norwegian keyboards will note that the &lt;b&gt;+&lt;/b&gt; and &lt;b&gt;-&lt;/b&gt; keys are not adjacent on the keyboard, but will still be able to activate both shortcuts without needing to press the &lt;b&gt;Shift&lt;/b&gt; key. However, users with British keyboards will need to hold down the &lt;b&gt;Shift&lt;/b&gt; key to enter the &lt;b&gt;+&lt;/b&gt; symbol, making the shortcut effectively the same as &amp;quot;Ctrl+Shift+=&amp;quot;.&lt;/p&gt;
&lt;p&gt;Although some developers might resort to fully specifying all the modifiers they use on their keyboards to activate a shortcut, this will also result in unexpected behavior for users of different keyboard layouts.&lt;/p&gt;
&lt;p&gt;For example, a developer using a British keyboard may decide to specify &amp;quot;Ctrl+Shift+=&amp;quot; as the key sequence in order to create a shortcut that coincidentally behaves in the same way as &lt;b&gt;Ctrl plus&lt;/b&gt;. However, the &lt;b&gt;=&lt;/b&gt; key needs to be accessed using the &lt;b&gt;Shift&lt;/b&gt; key on Norwegian keyboard, making the required shortcut effectively &lt;b&gt;Ctrl Shift Shift =&lt;/b&gt; (an impossible key combination).&lt;/p&gt;
&lt;p&gt;As a result, both human-readable strings and hard-coded key codes can both be problematic to use when specifying a key sequence that can be used on a variety of different keyboard layouts. Only the use of &lt;a href=&quot;QKeySequence.html#StandardKey-enum&quot;&gt;standard shortcuts&lt;/tt&gt;&lt;/a&gt; guarantees that the user will be able to use the shortcuts that the developer intended.&lt;/p&gt;
&lt;p&gt;Despite this, we can address this issue by ensuring that human-readable strings are used, making it possible for translations of key sequences to be made for users of different languages. This approach will be successful for users whose keyboards have the most typical layout for the language they are using.&lt;/p&gt;
&lt;a name=&quot;gnu-emacs-style-key-sequences&quot;&gt;&lt;/a&gt;
&lt;h3&gt;GNU Emacs Style Key Sequences&lt;/h3&gt;
&lt;p&gt;Key sequences similar to those used in GNU Emacs&lt;/tt&gt;, allowing up to four key codes, can be created by using the multiple argument constructor, or by passing a human-readable string of comma-separated key sequences.&lt;/p&gt;
&lt;p&gt;For example, the key sequence, &lt;b&gt;Ctrl X&lt;/b&gt; followed by &lt;b&gt;Ctrl C&lt;/b&gt;, can be specified using either of the following ways:&lt;/p&gt;
&lt;pre&gt;    QKeySequence(tr(&amp;quot;Ctrl+X, Ctrl+C&amp;quot;))
    QKeySequence(Qt::CTRL + Qt::Key_X, Qt::CTRL + Qt::Key_C)&lt;/pre&gt;

@see &lt;a href=&quot;QShortcut.html&quot;&gt;&lt;tt&gt;QShortcut&lt;/tt&gt;&lt;/a&gt; */">
    <method name="public QKeySequence(int k1, int k2, int k3, int k4)" doc="/**
&lt;p&gt;Constructs a key sequence with up to 4 keys &lt;tt&gt;k1&lt;/tt&gt;, &lt;tt&gt;k2&lt;/tt&gt;, &lt;tt&gt;k3&lt;/tt&gt; and &lt;tt&gt;k4&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The key codes are listed in Qt::Key and can be combined with modifiers (see Qt::Modifier) such as Qt::SHIFT, Qt::CTRL, Qt::ALT, or Qt::META.&lt;/p&gt;
 */"/>
    <method name="public QKeySequence(int k1, int k2, int k3)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QKeySequence.html#QKeySequence(java.lang.String)&quot;&gt;&lt;tt&gt;QKeySequence&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;k1&lt;/tt&gt;, &lt;tt&gt;k2&lt;/tt&gt;, &lt;tt&gt;k3&lt;/tt&gt;, 0). */"/>
    <method name="public QKeySequence(int k1, int k2)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QKeySequence.html#QKeySequence(java.lang.String)&quot;&gt;&lt;tt&gt;QKeySequence&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;k1&lt;/tt&gt;, &lt;tt&gt;k2&lt;/tt&gt;, 0, 0). */"/>
    <method name="public QKeySequence(int k1)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QKeySequence.html#QKeySequence(java.lang.String)&quot;&gt;&lt;tt&gt;QKeySequence&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;k1&lt;/tt&gt;, 0, 0, 0). */"/>
    <method name="public QKeySequence(com.trolltech.qt.gui.QKeySequence.StandardKey key)" doc="/**
&lt;p&gt;Constructs a &lt;a href=&quot;QKeySequence.html#QKeySequence(java.lang.String)&quot;&gt;&lt;tt&gt;QKeySequence&lt;/tt&gt;&lt;/a&gt; object for the given &lt;tt&gt;key&lt;/tt&gt;. The result will depend on the currently running platform.&lt;/p&gt;
&lt;p&gt;The resulting object will be based on the first element in the list of key bindings for the &lt;tt&gt;key&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public QKeySequence(com.trolltech.qt.gui.QKeySequence ks)" doc="/**
&lt;p&gt;Copy constructor. Makes a copy of &lt;tt&gt;ks&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public QKeySequence()" doc="/**
&lt;p&gt;Constructs an empty key sequence.&lt;/p&gt;
 */"/>
    <method name="public QKeySequence(java.lang.String key)" doc="/**
&lt;p&gt;Creates a key sequence from the &lt;tt&gt;key&lt;/tt&gt; string. For example &amp;quot;Ctrl+O&amp;quot; gives CTRL+'O'. The strings &amp;quot;Ctrl&amp;quot;, &amp;quot;Shift&amp;quot;, &amp;quot;Alt&amp;quot; and &amp;quot;Meta&amp;quot; are recognized, as well as their translated equivalents in the &amp;quot;&lt;a href=&quot;QShortcut.html&quot;&gt;&lt;tt&gt;QShortcut&lt;/tt&gt;&lt;/a&gt;&amp;quot; context (using QObject::tr()).&lt;/p&gt;
&lt;p&gt;Up to four key codes may be entered by separating them with commas, e.g&amp;#x2e; &amp;quot;Alt+X,Ctrl+S,Q&amp;quot;.&lt;/p&gt;
&lt;p&gt;This constructor is typically used with tr&lt;/tt&gt;(), so that shortcut keys can be replaced in translations:&lt;/p&gt;
&lt;pre&gt;    QMenu *file = new QMenu(this);
    file-&amp;gt;addAction(tr(&amp;quot;&amp;amp;Open...&amp;quot;), this, SLOT(open()),
                      QKeySequence(tr(&amp;quot;Ctrl+O&amp;quot;, &amp;quot;File|Open&amp;quot;)));&lt;/pre&gt;
&lt;p&gt;Note the &amp;quot;File|Open&amp;quot; translator comment. It is by no means necessary, but it provides some context for the human translator.&lt;/p&gt;
 */"/>
    <method name="public final int count()" doc="/**
&lt;p&gt;Returns the number of keys in the key sequence. The maximum is 4.&lt;/p&gt;
 */"/>
    <method name="public final boolean isEmpty()" doc="/**
&lt;p&gt;Returns true if the key sequence is empty; otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QKeySequence.SequenceMatch matches(com.trolltech.qt.gui.QKeySequence seq)" doc="/**
&lt;p&gt;Matches the sequence with &lt;tt&gt;seq&lt;/tt&gt;. Returns &lt;a href=&quot;QKeySequence.html#SequenceMatch-enum&quot;&gt;&lt;tt&gt;ExactMatch&lt;/tt&gt;&lt;/a&gt; if successful, &lt;a href=&quot;QKeySequence.html#SequenceMatch-enum&quot;&gt;&lt;tt&gt;PartialMatch&lt;/tt&gt;&lt;/a&gt; if &lt;tt&gt;seq&lt;/tt&gt; matches incompletely, and &lt;a href=&quot;QKeySequence.html#SequenceMatch-enum&quot;&gt;&lt;tt&gt;NoMatch&lt;/tt&gt;&lt;/a&gt; if the sequences have nothing in common. Returns &lt;a href=&quot;QKeySequence.html#SequenceMatch-enum&quot;&gt;&lt;tt&gt;NoMatch&lt;/tt&gt;&lt;/a&gt; if &lt;tt&gt;seq&lt;/tt&gt; is shorter.&lt;/p&gt;
 */"/>
    <method name="public final void writeTo(com.trolltech.qt.core.QDataStream in)"/>
    <method name="public final void readFrom(com.trolltech.qt.core.QDataStream out)"/>
    <method name="public final java.lang.String toString(com.trolltech.qt.gui.QKeySequence.SequenceFormat format)" doc="/**
&lt;p&gt;Return a string representation of the key sequence, based on &lt;tt&gt;format&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;For example, the value Qt::CTRL+Qt::Key_O results in &amp;quot;Ctrl+O&amp;quot;. If the key sequence has multiple key codes, each is separated by commas in the string returned, such as &amp;quot;Alt+X, Ctrl+Y, Z&amp;quot;. The strings, &amp;quot;Ctrl&amp;quot;, &amp;quot;Shift&amp;quot;, etc. are translated using QObject::tr() in the &amp;quot;&lt;a href=&quot;QShortcut.html&quot;&gt;&lt;tt&gt;QShortcut&lt;/tt&gt;&lt;/a&gt;&amp;quot; context.&lt;/p&gt;
&lt;p&gt;If the key sequence has no keys, an empty string is returned.&lt;/p&gt;
&lt;p&gt;On Mac OS X, the string returned resembles the sequence that is shown in the menu bar.&lt;/p&gt;

@see &lt;a href=&quot;QKeySequence.html#fromString(java.lang.String, com.trolltech.qt.gui.QKeySequence.SequenceFormat)&quot;&gt;&lt;tt&gt;fromString&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String toString()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QKeySequence.html#toString(com.trolltech.qt.gui.QKeySequence.SequenceFormat)&quot;&gt;&lt;tt&gt;toString&lt;/tt&gt;&lt;/a&gt;(PortableText). */"/>
    <method name="public static com.trolltech.qt.gui.QKeySequence fromString(java.lang.String str, com.trolltech.qt.gui.QKeySequence.SequenceFormat format)" doc="/**
&lt;p&gt;Return a &lt;a href=&quot;QKeySequence.html#QKeySequence(java.lang.String)&quot;&gt;&lt;tt&gt;QKeySequence&lt;/tt&gt;&lt;/a&gt; from the string &lt;tt&gt;str&lt;/tt&gt; based on &lt;tt&gt;format&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QKeySequence.html#toString(com.trolltech.qt.gui.QKeySequence.SequenceFormat)&quot;&gt;&lt;tt&gt;toString&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public static com.trolltech.qt.gui.QKeySequence fromString(java.lang.String str)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QKeySequence.html#fromString(java.lang.String, com.trolltech.qt.gui.QKeySequence.SequenceFormat)&quot;&gt;&lt;tt&gt;fromString&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;str&lt;/tt&gt;, PortableText). */"/>
    <method name="public static java.util.List&lt;com.trolltech.qt.gui.QKeySequence&gt; keyBindings(com.trolltech.qt.gui.QKeySequence.StandardKey key)" doc="/**
&lt;p&gt;Returns a list of key bindings for the given &lt;tt&gt;key&lt;/tt&gt;. The result of calling this function will vary based on the target platform. The first element of the list indicates the primary shortcut for the given platform. If the result contains more than one result, these can be considered alternative shortcuts on the same platform for the given &lt;tt&gt;key&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public native static com.trolltech.qt.gui.QKeySequence mnemonic(java.lang.String text)" doc="/**
&lt;p&gt;Returns the shortcut key sequence for the mnemonic in &lt;tt&gt;text&lt;/tt&gt;, or an empty key sequence if no mnemonics are found.&lt;/p&gt;
&lt;p&gt;For example, mnemonic(&amp;quot;E&amp;amp;xit&amp;quot;) returns &lt;tt&gt;Qt::ALT+Qt::Key_X&lt;/tt&gt;, mnemonic(&amp;quot;&amp;amp;Quit&amp;quot;) returns &lt;tt&gt;ALT+Key_Q&lt;/tt&gt;, and mnemonic(&amp;quot;Quit&amp;quot;) returns an empty &lt;a href=&quot;QKeySequence.html#QKeySequence(java.lang.String)&quot;&gt;&lt;tt&gt;QKeySequence&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;We provide a &lt;a href=&quot;%2E%2E/accelerators.html&quot;&gt;list of common mnemonics&lt;/tt&gt;&lt;/a&gt; in English. At the time of writing, Microsoft and Open Group do not appear to have issued equivalent recommendations for other languages.&lt;/p&gt;
 */"/>
    <enum name="SequenceFormat">
        <enum-value name="NativeText" doc="/**
&lt;p&gt;The key sequence as a platform specific string. This means that it will be shown translated and on the Mac it will resemble a key sequence from the menu bar. This enum is best used when you want to display the string to the user.&lt;/p&gt;
 */"/>
        <enum-value name="PortableText" doc="/**
&lt;p&gt;The key sequence is given in a &amp;quot;portable&amp;quot; format, suitable for reading and writing to a file. In many cases, it will look similar to the native text on Windows and X11.&lt;/p&gt;
 */"/>
</enum>
    <enum name="StandardKey" doc="/**
&lt;p&gt;This enum represent standard key bindings. They can be used to assign platform dependent keyboard shortcuts to a &lt;a href=&quot;QAction.html&quot;&gt;&lt;tt&gt;QAction&lt;/tt&gt;&lt;/a&gt;. &lt;a href=&quot;QKeyEvent.html&quot;&gt;&lt;tt&gt;QKeyEvent&lt;/tt&gt;&lt;/a&gt; also provides the function QKeyEvent::standardKey() to query if it matches an existing key binding.&lt;/p&gt;
&lt;p&gt;Note that the key bindings are platform dependent. The currently bound shortcuts can be queried using &lt;a href=&quot;QKeySequence.html#keyBindings(com.trolltech.qt.gui.QKeySequence.StandardKey)&quot;&gt;&lt;tt&gt;keyBindings&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */">
        <enum-value name="UnknownKey" doc="/**
&lt;p&gt;Unbound key.&lt;/p&gt;
 */"/>
        <enum-value name="HelpContents" doc="/**
&lt;p&gt;Open help contents.&lt;/p&gt;
 */"/>
        <enum-value name="WhatsThis" doc="/**
&lt;p&gt;Activate whats this.&lt;/p&gt;
 */"/>
        <enum-value name="Open" doc="/**
&lt;p&gt;Open Document.&lt;/p&gt;
 */"/>
        <enum-value name="Close" doc="/**
&lt;p&gt;Close Document/Tab.&lt;/p&gt;
 */"/>
        <enum-value name="Save" doc="/**
&lt;p&gt;Save Document.&lt;/p&gt;
 */"/>
        <enum-value name="New" doc="/**
&lt;p&gt;Create new Document.&lt;/p&gt;
 */"/>
        <enum-value name="Delete" doc="/**
&lt;p&gt;Delete.&lt;/p&gt;
 */"/>
        <enum-value name="Cut" doc="/**
&lt;p&gt;Cut.&lt;/p&gt;
 */"/>
        <enum-value name="Copy" doc="/**
&lt;p&gt;Copy.&lt;/p&gt;
 */"/>
        <enum-value name="Paste" doc="/**
&lt;p&gt;Paste.&lt;/p&gt;
 */"/>
        <enum-value name="Undo" doc="/**
&lt;p&gt;Undo.&lt;/p&gt;
 */"/>
        <enum-value name="Redo" doc="/**
&lt;p&gt;Redo.&lt;/p&gt;
 */"/>
        <enum-value name="Back" doc="/**
&lt;p&gt;Navigate back.&lt;/p&gt;
 */"/>
        <enum-value name="Forward" doc="/**
&lt;p&gt;Navigate forward.&lt;/p&gt;
 */"/>
        <enum-value name="Refresh" doc="/**
&lt;p&gt;Refresh or reload current document.&lt;/p&gt;
 */"/>
        <enum-value name="ZoomIn" doc="/**
&lt;p&gt;Zoom in.&lt;/p&gt;
 */"/>
        <enum-value name="ZoomOut" doc="/**
&lt;p&gt;Zoom out.&lt;/p&gt;
 */"/>
        <enum-value name="Print" doc="/**
&lt;p&gt;Print document.&lt;/p&gt;
 */"/>
        <enum-value name="AddTab" doc="/**
&lt;p&gt;Add new tab.&lt;/p&gt;
 */"/>
        <enum-value name="NextChild" doc="/**
&lt;p&gt;Navigate to next tab or child window.&lt;/p&gt;
 */"/>
        <enum-value name="PreviousChild" doc="/**
&lt;p&gt;Navigate to previous tab or child window.&lt;/p&gt;
 */"/>
        <enum-value name="Find" doc="/**
&lt;p&gt;Find in document.&lt;/p&gt;
 */"/>
        <enum-value name="FindNext" doc="/**
&lt;p&gt;Find next result.&lt;/p&gt;
 */"/>
        <enum-value name="FindPrevious" doc="/**
&lt;p&gt;Find previous result.&lt;/p&gt;
 */"/>
        <enum-value name="Replace" doc="/**
&lt;p&gt;Find and replace.&lt;/p&gt;
 */"/>
        <enum-value name="SelectAll" doc="/**
&lt;p&gt;Select all text.&lt;/p&gt;
 */"/>
        <enum-value name="Bold" doc="/**
&lt;p&gt;Bold text.&lt;/p&gt;
 */"/>
        <enum-value name="Italic" doc="/**
&lt;p&gt;Italic text.&lt;/p&gt;
 */"/>
        <enum-value name="Underline" doc="/**
&lt;p&gt;Underline text.&lt;/p&gt;
 */"/>
        <enum-value name="MoveToNextChar" doc="/**
&lt;p&gt;Move cursor to next character.&lt;/p&gt;
 */"/>
        <enum-value name="MoveToPreviousChar" doc="/**
&lt;p&gt;Move cursor to previous character.&lt;/p&gt;
 */"/>
        <enum-value name="MoveToNextWord" doc="/**
&lt;p&gt;Move cursor to next word.&lt;/p&gt;
 */"/>
        <enum-value name="MoveToPreviousWord" doc="/**
&lt;p&gt;Move cursor to previous word.&lt;/p&gt;
 */"/>
        <enum-value name="MoveToNextLine" doc="/**
&lt;p&gt;Move cursor to next line.&lt;/p&gt;
 */"/>
        <enum-value name="MoveToPreviousLine" doc="/**
&lt;p&gt;Move cursor to previous line.&lt;/p&gt;
 */"/>
        <enum-value name="MoveToNextPage" doc="/**
&lt;p&gt;Move cursor to next page.&lt;/p&gt;
 */"/>
        <enum-value name="MoveToPreviousPage" doc="/**
&lt;p&gt;Move cursor to previous page.&lt;/p&gt;
 */"/>
        <enum-value name="MoveToStartOfLine" doc="/**
&lt;p&gt;Move cursor to start of line.&lt;/p&gt;
 */"/>
        <enum-value name="MoveToEndOfLine" doc="/**
&lt;p&gt;Move cursor to end of line.&lt;/p&gt;
 */"/>
        <enum-value name="MoveToStartOfBlock" doc="/**
&lt;p&gt;Move cursor to start of a block. This shortcut is only used on OS X.&lt;/p&gt;
 */"/>
        <enum-value name="MoveToEndOfBlock" doc="/**
&lt;p&gt;Move cursor to end of block. This shortcut is only used on the OS X.&lt;/p&gt;
 */"/>
        <enum-value name="MoveToStartOfDocument" doc="/**
&lt;p&gt;Move cursor to start of document.&lt;/p&gt;
 */"/>
        <enum-value name="MoveToEndOfDocument" doc="/**
&lt;p&gt;Move cursor to end of document.&lt;/p&gt;
 */"/>
        <enum-value name="SelectNextChar" doc="/**
&lt;p&gt;Extend selection to next character.&lt;/p&gt;
 */"/>
        <enum-value name="SelectPreviousChar" doc="/**
&lt;p&gt;Extend selection to previous character.&lt;/p&gt;
 */"/>
        <enum-value name="SelectNextWord" doc="/**
&lt;p&gt;Extend selection to next word.&lt;/p&gt;
 */"/>
        <enum-value name="SelectPreviousWord" doc="/**
&lt;p&gt;Extend selection to previous word.&lt;/p&gt;
 */"/>
        <enum-value name="SelectNextLine" doc="/**
&lt;p&gt;Extend selection to next line.&lt;/p&gt;
 */"/>
        <enum-value name="SelectPreviousLine" doc="/**
&lt;p&gt;Extend selection to previous line.&lt;/p&gt;
 */"/>
        <enum-value name="SelectNextPage" doc="/**
&lt;p&gt;Extend selection to next page.&lt;/p&gt;
 */"/>
        <enum-value name="SelectPreviousPage" doc="/**
&lt;p&gt;Extend selection to previous page.&lt;/p&gt;
 */"/>
        <enum-value name="SelectStartOfLine" doc="/**
&lt;p&gt;Extend selection to start of line.&lt;/p&gt;
 */"/>
        <enum-value name="SelectEndOfLine" doc="/**
&lt;p&gt;Extend selection to end of line.&lt;/p&gt;
 */"/>
        <enum-value name="SelectStartOfBlock" doc="/**
&lt;p&gt;Extend selection to the start of a text block. This shortcut is only used on OS X.&lt;/p&gt;
 */"/>
        <enum-value name="SelectEndOfBlock" doc="/**
&lt;p&gt;Extend selection to the end of a text block. This shortcut is only used on OS X.&lt;/p&gt;
 */"/>
        <enum-value name="SelectStartOfDocument" doc="/**
&lt;p&gt;Extend selection to start of document.&lt;/p&gt;
 */"/>
        <enum-value name="SelectEndOfDocument" doc="/**
&lt;p&gt;Extend selection to end of document.&lt;/p&gt;
 */"/>
        <enum-value name="DeleteStartOfWord" doc="/**
&lt;p&gt;Delete the beginning of a word up to the cursor.&lt;/p&gt;
 */"/>
        <enum-value name="DeleteEndOfWord" doc="/**
&lt;p&gt;Delete word from the end of the cursor.&lt;/p&gt;
 */"/>
        <enum-value name="DeleteEndOfLine" doc="/**
&lt;p&gt;Delete end of line.&lt;/p&gt;
 */"/>
</enum>
    <enum name="SequenceMatch">
        <enum-value name="NoMatch" doc="/**
&lt;p&gt;The key sequences are different; not even partially matching.&lt;/p&gt;
 */"/>
        <enum-value name="PartialMatch" doc="/**
&lt;p&gt;The key sequences match partially, but are not the same.&lt;/p&gt;
 */"/>
        <enum-value name="ExactMatch" doc="/**
&lt;p&gt;The key sequences are the same.&lt;/p&gt;
 */"/>
</enum>
</class>
