# Namespace KStandardShortcut

Module | kdeui
Namespace | KStandardShortcut

\namespace KStandardShortcut Convenient methods for access to the common accelerator keys in the key configuration. These are the standard keybindings that should be used in all KDE applications. They will be configurable, so do not hardcode the default behavior.

### enums

- StandardShortcut { AccelNone, Open, New, Close, Save, Print, Quit, Undo, Redo, Cut, Copy, Paste, PasteSelection, SelectAll, Deselect, DeleteWordBack, DeleteWordForward, Find, FindNext, FindPrev, Replace, Home, Begin, End, Prior, Next, Up, Back, Forward, Reload, BeginningOfLine, EndOfLine, GotoLine, BackwardWord, ForwardWord, AddBookmark, ZoomIn, ZoomOut, FullScreen, ShowMenubar, TabNext, TabPrev, Help, WhatsThis, TextCompletion, PrevCompletion, NextCompletion, SubstringCompletion, RotateUp, RotateDown, StandardShortcutCount }

enum details

### methods

- addBookmark ( )

  returns KShortcut

  Add current page to bookmarks. Default: Ctrl+B Returns the shortcut of the standard accelerator

- back ( )

  returns KShortcut

  Back. Default: Alt+Left Returns the shortcut of the standard accelerator

- backwardWord ( )

  returns KShortcut

  BackwardWord. Default: Ctrl+Left Returns the shortcut of the standard accelerator

- begin ( )

  returns KShortcut

  Goto beginning of the document. Default: Ctrl-Home Returns the shortcut of the standard accelerator

- beginningOfLine ( )

  returns KShortcut

  Goto beginning of current line. Default: Home Returns the shortcut of the standard accelerator

- close ( )

  returns KShortcut

  Close current document. Default: Ctrl-w Returns the shortcut of the standard accelerator

- completion ( )

  returns KShortcut

  Complete text in input widgets. Default Ctrl+E Returns the shortcut of the standard accelerator

- copy ( )

  returns KShortcut

  Copy selected area into the clipboard. Default: Ctrl-c Returns the shortcut of the standard accelerator

- cut ( )

  returns KShortcut

  Cut selected area and store it in the clipboard. Default: Ctrl-x Returns the shortcut of the standard accelerator

- deleteWordBack ( )

  returns KShortcut

  Delete a word back from mouse/cursor position. Default: Ctrl-Backspace Returns the shortcut of the standard accelerator

- deleteWordForward ( )

  returns KShortcut

  Delete a word forward from mouse/cursor position. Default: Ctrl-Delete Returns the shortcut of the standard accelerator

- end ( )

  returns KShortcut

  Goto end of the document. Default: Ctrl-End Returns the shortcut of the standard accelerator

- endOfLine ( )

  returns KShortcut

  Goto end of current line. Default: End Returns the shortcut of the standard accelerator

- find (keySeq)

  returns KStandardShortcut.StandardShortcut

  Argument | Type | Default
  --- | --- | ---
  keySeq | QKeySequence |

  Return the StandardShortcut id of the standard accel action which uses this key sequence, or AccelNone if none of them do. This is used by class KKeyChooser.

  keySeq - the key sequence to search Returns the id of the standard accelerator, or AccelNone if there is none

- find (keyName)

  returns KStandardShortcut.StandardShortcut

  Argument | Type | Default
  --- | --- | ---
  keyName | char |

  Return the StandardShortcut id of the standard accel action which has keyName as its name, or AccelNone if none of them do. This is used by class KKeyChooser.

  keyName - the key sequence to search Returns the id of the standard accelerator, or AccelNone if there is none

- find ( )

  returns KShortcut

  Find, search. Default: Ctrl-f Returns the shortcut of the standard accelerator

- findNext ( )

  returns KShortcut

  Find/search next. Default: F3 Returns the shortcut of the standard accelerator

- findPrev ( )

  returns KShortcut

  Find/search previous. Default: Shift-F3 Returns the shortcut of the standard accelerator

- forward ( )

  returns KShortcut

  Forward. Default: ALT+Right Returns the shortcut of the standard accelerator

- forwardWord ( )

  returns KShortcut

  ForwardWord. Default: Ctrl+Right Returns the shortcut of the standard accelerator

- fullScreen ( )

  returns KShortcut

  Full Screen Mode. Default: Ctrl+Shift+F Returns the shortcut of the standard accelerator

- gotoLine ( )

  returns KShortcut

  Go to line. Default: Ctrl+G Returns the shortcut of the standard accelerator

- hardcodedDefaultShortcut (id)

  returns KShortcut

  Argument | Type | Default
  --- | --- | ---
  id | KStandardShortcut.StandardShortcut |

  Returns the hardcoded default shortcut for id. This does not take into account the user's configuration.

  id - the id of the accelerator Returns the default shortcut of the accelerator

- help ( )

  returns KShortcut

  Help the user in the current situation. Default: F1 Returns the shortcut of the standard accelerator

- home ( )

  returns KShortcut

  Goto home page. Default: Alt-Home Returns the shortcut of the standard accelerator

- insert ( )

  returns KShortcut
  Not implemented

  Toggle insert/overwrite (with visual feedback, e.g. in the statusbar). Default: Insert Returns the shortcut of the standard accelerator

- label (id)

  returns QString

  Argument | Type | Default
  --- | --- | ---
  id | KStandardShortcut.StandardShortcut |

  Returns a localized label for user-visible display.

  id - the id of the accelerator Returns a localized label for the accelerator

- name (id)

  returns QString

  Argument | Type | Default
  --- | --- | ---
  id | KStandardShortcut.StandardShortcut |

  Returns a unique name for the given accel.

  id - the id of the accelerator Returns the unique name of the accelerator

- next ( )

  returns KShortcut

  Scroll down one page. Default: Next Returns the shortcut of the standard accelerator

- nextCompletion ( )

  returns KShortcut

  Iterate through a list when completion returns multiple items. Default: Ctrl+Down Returns the shortcut of the standard accelerator

- open ( )

  returns KShortcut

  Open file. Default: Ctrl-o Returns the shortcut of the standard accelerator

- openNew ( )

  returns KShortcut

  Create a new document (or whatever). Default: Ctrl-n Returns the shortcut of the standard accelerator

- paste ( )

  returns KShortcut

  Paste contents of clipboard at mouse/cursor position. Default: Ctrl-v Returns the shortcut of the standard accelerator

- pasteSelection ( )

  returns KShortcut

  Paste the selection at mouse/cursor position. Default: Ctrl-Shift-Insert Returns the shortcut of the standard accelerator

- prevCompletion ( )

  returns KShortcut

  Iterate through a list when completion returns multiple items. Default: Ctrl+Up Returns the shortcut of the standard accelerator

- print ( )

  returns KShortcut

  Print current document. Default: Ctrl-p Returns the shortcut of the standard accelerator

- prior ( )

  returns KShortcut

  Scroll up one page. Default: Prior Returns the shortcut of the standard accelerator

- quit ( )

  returns KShortcut

  Quit the program. Default: Ctrl-q Returns the shortcut of the standard accelerator

- redo ( )

  returns KShortcut

  Redo. Default: Shift-Ctrl-z Returns the shortcut of the standard accelerator

- reload ( )

  returns KShortcut

  Reload. Default: F5 Returns the shortcut of the standard accelerator

- replace ( )

  returns KShortcut

  Find and replace matches. Default: Ctrl-r Returns the shortcut of the standard accelerator

- rotateDown ( )

  returns KShortcut

  Help users iterate through a list of entries. Default: Down Returns the shortcut of the standard accelerator

- rotateUp ( )

  returns KShortcut

  Help users iterate through a list of entries. Default: Up Returns the shortcut of the standard accelerator

- save ( )

  returns KShortcut

  Save current document. Default: Ctrl-s Returns the shortcut of the standard accelerator

- saveShortcut (id, newShortcut)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  id | KStandardShortcut.StandardShortcut |
  newShortcut | KShortcut |

  Saves the new shortcut cut for standard accel id.

- selectAll ( )

  returns KShortcut

  Reload. Default: Ctrl-A Returns the shortcut of the standard accelerator

- shortcut (id)

  returns KShortcut

  Argument | Type | Default
  --- | --- | ---
  id | KStandardShortcut.StandardShortcut |

  Returns the keybinding for accel. On X11, if QApplication was initialized with GUI disabled, the default keybinding will always be returned.

  id - the id of the accelerator

- showMenubar ( )

  returns KShortcut

  Show Menu Bar. Default: Ctrl-M Returns the shortcut of the standard accelerator

- substringCompletion ( )

  returns KShortcut

  Find a string within another string or list of strings. Default: Ctrl-T Returns the shortcut of the standard accelerator

- tabNext ( )

  returns KShortcut

  Next Tab. Default: Ctrl-< Returns the shortcut of the standard accelerator

- tabPrev ( )

  returns KShortcut

  Previous Tab. Default: Ctrl-> Returns the shortcut of the standard accelerator

- undo ( )

  returns KShortcut

  Undo last operation. Default: Ctrl-z Returns the shortcut of the standard accelerator

- up ( )

  returns KShortcut

  Up. Default: Alt+Up Returns the shortcut of the standard accelerator

- whatsThis (id)

  returns QString

  Argument | Type | Default
  --- | --- | ---
  id | KStandardShortcut.StandardShortcut |

  Returns an extended WhatsThis description for the given accelerator.

  id - the id of the accelerator Returns a localized description of the accelerator

- whatsThis ( )

  returns KShortcut

  What's This button. Default: Shift+F1 Returns the shortcut of the standard accelerator

- zoomIn ( )

  returns KShortcut

  Zoom in. Default: Ctrl-Plus Returns the shortcut of the standard accelerator

- zoomOut ( )

  returns KShortcut

  Zoom out. Default: Ctrl-Minus Returns the shortcut of the standard accelerator

### enums - detail

- StandardShortcut { AccelNone, Open, New, Close, Save, Print, Quit, Undo, Redo, Cut, Copy, Paste, PasteSelection, SelectAll, Deselect, DeleteWordBack, DeleteWordForward, Find, FindNext, FindPrev, Replace, Home, Begin, End, Prior, Next, Up, Back, Forward, Reload, BeginningOfLine, EndOfLine, GotoLine, BackwardWord, ForwardWord, AddBookmark, ZoomIn, ZoomOut, FullScreen, ShowMenubar, TabNext, TabPrev, Help, WhatsThis, TextCompletion, PrevCompletion, NextCompletion, SubstringCompletion, RotateUp, RotateDown, StandardShortcutCount }

  Defines the identifier of all standard accelerators.

  | AccelNone | - 0 | - |
  | Open | - | - |
  | New | - | - |
  | Close | - | - |
  | Save | - | - |
  | Print | - | - |
  | Quit | - | - |
  | Undo | - | - |
  | Redo | - | - |
  | Cut | - | - |
  | Copy | - | - |
  | Paste | - | - |
  | PasteSelection | - | - |
  | SelectAll | - | - |
  | Deselect | - | - |
  | DeleteWordBack | - | - |
  | DeleteWordForward | - | - |
  | Find | - | - |
  | FindNext | - | - |
  | FindPrev | - | - |
  | Replace | - | - |
  | Home | - | - |
  | Begin | - | - |
  | End | - | - |
  | Prior | - | - |
  | Next | - | - |
  | Up | - | - |
  | Back | - | - |
  | Forward | - | - |
  | Reload | - | - |
  | BeginningOfLine | - | - |
  | EndOfLine | - | - |
  | GotoLine | - | - |
  | BackwardWord | - | - |
  | ForwardWord | - | - |
  | AddBookmark | - | - |
  | ZoomIn | - | - |
  | ZoomOut | - | - |
  | FullScreen | - | - |
  | ShowMenubar | - | - |
  | TabNext | - | - |
  | TabPrev | - | - |
  | Help | - | - |
  | WhatsThis | - | - |
  | TextCompletion | - | - |
  | PrevCompletion | - | - |
  | NextCompletion | - | - |
  | SubstringCompletion | - | - |
  | RotateUp | - | - |
  | RotateDown | - | - |
  | StandardShortcutCount | - | - |