KStandardShortcut

KStandardShortcut Namespace Reference

Classes

class  StandardShortcutWatcher
 

Enumerations

enum class  Category {
  InvalidCategory = -1 , File , Edit , Navigation ,
  View , Settings , Help
}
 
enum  StandardShortcut {
  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 , OpenRecent , SaveAs ,
  Revert , PrintPreview , Mail , Clear ,
  ActualSize , FitToPage , FitToWidth , FitToHeight ,
  Zoom , Goto , GotoPage , DocumentBack ,
  DocumentForward , EditBookmarks , Spelling , ShowToolbar ,
  ShowStatusbar , KeyBindings , Preferences , ConfigureToolbars ,
  ConfigureNotifications , ReportBug , SwitchApplicationLanguage , AboutApp ,
  AboutKDE , DeleteFile , RenameFile , MoveToTrash ,
  Donate , ShowHideHiddenFiles , CreateFolder , OpenMainMenu ,
  OpenContextMenu , StandardShortcutCount
}
 

Functions

const QList< QKeySequence > & addBookmark ()
 
const QList< QKeySequence > & back ()
 
const QList< QKeySequence > & backwardWord ()
 
const QList< QKeySequence > & begin ()
 
const QList< QKeySequence > & beginningOfLine ()
 
Category category (StandardShortcut id)
 
const QList< QKeySequence > & close ()
 
const QList< QKeySequence > & completion ()
 
const QList< QKeySequence > & copy ()
 
const QList< QKeySequence > & createFolder ()
 
const QList< QKeySequence > & cut ()
 
const QList< QKeySequence > & deleteFile ()
 
const QList< QKeySequence > & deleteWordBack ()
 
const QList< QKeySequence > & deleteWordForward ()
 
const QList< QKeySequence > & end ()
 
const QList< QKeySequence > & endOfLine ()
 
const QList< QKeySequence > & find ()
 
StandardShortcut find (const QKeySequence &keySeq)
 
StandardShortcut findByName (const QString &name)
 
const QList< QKeySequence > & findNext ()
 
const QList< QKeySequence > & findPrev ()
 
const QList< QKeySequence > & forward ()
 
const QList< QKeySequence > & forwardWord ()
 
const QList< QKeySequence > & fullScreen ()
 
const QList< QKeySequence > & gotoLine ()
 
static KStandardShortcutInfo * guardedStandardShortcutInfo (StandardShortcut id)
 
QList< QKeySequencehardcodedDefaultShortcut (StandardShortcut id)
 
const QList< QKeySequence > & help ()
 
const QList< QKeySequence > & home ()
 
void initialize (StandardShortcut id)
 
QString label (StandardShortcut id)
 
const QList< QKeySequence > & moveToTrash ()
 
QString name (StandardShortcut id)
 
const QList< QKeySequence > & next ()
 
const QList< QKeySequence > & nextCompletion ()
 
const QList< QKeySequence > & open ()
 
const QList< QKeySequence > & openContextMenu ()
 
const QList< QKeySequence > & openMainMenu ()
 
const QList< QKeySequence > & openNew ()
 
const QList< QKeySequence > & paste ()
 
const QList< QKeySequence > & pasteSelection ()
 
const QList< QKeySequence > & preferences ()
 
const QList< QKeySequence > & prevCompletion ()
 
const QList< QKeySequence > & print ()
 
const QList< QKeySequence > & prior ()
 
const QList< QKeySequence > & quit ()
 
const QList< QKeySequence > & redo ()
 
const QList< QKeySequence > & reload ()
 
const QList< QKeySequence > & renameFile ()
 
const QList< QKeySequence > & replace ()
 
const QList< QKeySequence > & rotateDown ()
 
const QList< QKeySequence > & rotateUp ()
 
static void sanitizeShortcutList (QList< QKeySequence > *list)
 
const QList< QKeySequence > & save ()
 
void saveShortcut (StandardShortcut id, const QList< QKeySequence > &newShortcut)
 
const QList< QKeySequence > & selectAll ()
 
const QList< QKeySequence > & shortcut (StandardShortcut id)
 
StandardShortcutWatchershortcutWatcher ()
 
const QList< QKeySequence > & showHideHiddenFiles ()
 
const QList< QKeySequence > & showMenubar ()
 
const QList< QKeySequence > & substringCompletion ()
 
const QList< QKeySequence > & tabNext ()
 
const QList< QKeySequence > & tabPrev ()
 
const QList< QKeySequence > & undo ()
 
const QList< QKeySequence > & up ()
 
const QList< QKeySequence > & whatsThis ()
 
const QList< QKeySequence > & zoomIn ()
 
const QList< QKeySequence > & zoomOut ()
 

Variables

static KStandardShortcutInfo g_infoStandardShortcut []
 
QString whatsThis (StandardShortcut id)
 

Detailed Description

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.

Enumeration Type Documentation

◆ Category

enum class KStandardShortcut::Category
strong

Categories in which the standard shortcuts can be classified.

Since
5.74

Definition at line 150 of file kstandardshortcut.h.

◆ StandardShortcut

Defines the identifier of all standard accelerators.

Enumerator
Open 

Open file.

New 

Create a new document.

Close 

Close current document.

Save 

Save current document.

Print 

Print current document.

Quit 

Quit the program.

Undo 

Undo last operation.

Redo 

Redo last operation.

Cut 

Cut selected area and store it in the clipboard.

Copy 

Copy selected area into the clipboard.

Paste 

Paste contents of clipboard at mouse/cursor position.

PasteSelection 

Paste the selection at mouse/cursor position.

SelectAll 

Select all.

Deselect 

Deselect any selected elements.

DeleteWordBack 

Delete a word back from mouse/cursor position.

DeleteWordForward 

Delete a word forward from mouse/cursor position.

Find 

Initiate a 'find' request in the current document.

FindNext 

Find the next instance of a stored 'find'.

FindPrev 

Find a previous instance of a stored 'find'.

Replace 

Find and replace matches.

Home 

Go to home page.

Begin 

Go to beginning of the document.

End 

Go to end of the document.

Prior 

Scroll up one page.

Next 

Scroll down one page.

Up 

Up.

Back 

Back.

Forward 

Forward.

Reload 

Reload.

BeginningOfLine 

Go to beginning of current line.

EndOfLine 

Go to end of current line.

GotoLine 

Go to line.

BackwardWord 

BackwardWord.

ForwardWord 

ForwardWord.

AddBookmark 

Add current page to bookmarks.

ZoomIn 

Zoom in.

ZoomOut 

Zoom out.

FullScreen 

Full Screen mode.

ShowMenubar 

Show Menu Bar.

TabNext 

Next Tab.

TabPrev 

Previous Tab.

Help 

Help the user in the current situation.

WhatsThis 

What's This button.

TextCompletion 

Complete text in input widgets.

PrevCompletion 

Iterate through a list when completion returns multiple items.

NextCompletion 

Iterate through a list when completion returns multiple items.

SubstringCompletion 

Find a string within another string or list of strings.

RotateUp 

Help users iterate through a list of entries.

RotateDown 

Help users iterate through a list of entries.

OpenRecent 

Open a recently used document.

SaveAs 

Save the current document under a different name.

Revert 

Revert the current document to the last saved version.

PrintPreview 

Show a print preview of the current document.

Mail 

Send the current document by mail.

Clear 

Clear the content of the focus widget.

ActualSize 

View the document at its actual size.

FitToPage 

Fit the document view to the size of the current window.

FitToWidth 

Fit the document view to the width of the current window.

FitToHeight 

Fit the document view to the height of the current window.

Zoom 

Select the current zoom level.

Goto 

Jump to some specific location in the document.

GotoPage 

Go to a specific page.

DocumentBack 

Move back (document style menu).

DocumentForward 

Move forward (document style menu).

EditBookmarks 

Edit the application bookmarks.

Spelling 

Pop up the spell checker.

ShowToolbar 

Show/Hide the toolbar.

ShowStatusbar 

Show/Hide the statusbar.

KeyBindings 

Display the configure key bindings dialog.

Preferences 

Display the preferences/options dialog.

ConfigureToolbars 

Display the toolbar configuration dialog.

ConfigureNotifications 

Display the notifications configuration dialog.

ReportBug 

Display the Report Bug dialog.

SwitchApplicationLanguage 

Display the Switch Application Language dialog.

AboutApp 

Display the application's About dialog.

AboutKDE 

Display the About KDE dialog.

DeleteFile 

Permanently delete files or folders.

Since
5.25
RenameFile 

Rename files or folders.

Since
5.25
MoveToTrash 

Move files or folders to the trash.

Since
5.25
Donate 

Open donation page on kde.org.

Since
5.26
ShowHideHiddenFiles 

Toggle showing or hiding hidden files.

Since
5.70
CreateFolder 

Create a folder.

Since
5.74
OpenMainMenu 

Open a main menu like the menu bar or a hamburger menu. Necessary for accessibility.

Since
6.0
OpenContextMenu 

Open a context menu for the object with keyboard focus. Necessary for accessibility.

Since
6.0

Definition at line 44 of file kstandardshortcut.h.

Function Documentation

◆ addBookmark()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::addBookmark ( )

Add current page to bookmarks.

Default: Ctrl+B

Returns
the shortcut of the standard accelerator

Definition at line 721 of file kstandardshortcut.cpp.

◆ back()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::back ( )

Back.

Default: Alt+Left

Returns
the shortcut of the standard accelerator

Definition at line 789 of file kstandardshortcut.cpp.

◆ backwardWord()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::backwardWord ( )

BackwardWord.

Default: Ctrl+Left

Returns
the shortcut of the standard accelerator

Definition at line 709 of file kstandardshortcut.cpp.

◆ begin()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::begin ( )

Go to beginning of the document.

Default: Ctrl-Home

Returns
the shortcut of the standard accelerator

Definition at line 685 of file kstandardshortcut.cpp.

◆ beginningOfLine()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::beginningOfLine ( )

Go to beginning of current line.

Default: Home

Returns
the shortcut of the standard accelerator

Definition at line 693 of file kstandardshortcut.cpp.

◆ category()

KCONFIGGUI_EXPORT Category KStandardShortcut::category ( StandardShortcut id)

Returns the appropriate category for the given StandardShortcut id.

Since
5.73

Definition at line 604 of file kstandardshortcut.cpp.

◆ close()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::close ( )

Close current document.

Default: Ctrl-w

Returns
the shortcut of the standard accelerator

Definition at line 617 of file kstandardshortcut.cpp.

◆ completion()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::completion ( )

Complete text in input widgets.

Default Ctrl+E

Returns
the shortcut of the standard accelerator

Definition at line 749 of file kstandardshortcut.cpp.

◆ copy()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::copy ( )

Copy selected area into the clipboard.

Default: Ctrl-c

Returns
the shortcut of the standard accelerator

Definition at line 637 of file kstandardshortcut.cpp.

◆ createFolder()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::createFolder ( )

Create a folder.

Default: Ctrl+Shift+N

Returns
the shortcut of the standard accelerator
Since
5.74

Definition at line 809 of file kstandardshortcut.cpp.

◆ cut()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::cut ( )

Cut selected area and store it in the clipboard.

Default: Ctrl-x

Returns
the shortcut of the standard accelerator

Definition at line 633 of file kstandardshortcut.cpp.

◆ deleteFile()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::deleteFile ( )

Permanently delete files or folders.

Default: Shift+Delete

Returns
the shortcut of the standard accelerator
Since
5.25

Definition at line 801 of file kstandardshortcut.cpp.

◆ deleteWordBack()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::deleteWordBack ( )

Delete a word back from mouse/cursor position.

Default: Ctrl-Backspace

Returns
the shortcut of the standard accelerator

Definition at line 649 of file kstandardshortcut.cpp.

◆ deleteWordForward()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::deleteWordForward ( )

Delete a word forward from mouse/cursor position.

Default: Ctrl-Delete

Returns
the shortcut of the standard accelerator

Definition at line 653 of file kstandardshortcut.cpp.

◆ end()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::end ( )

Go to end of the document.

Default: Ctrl-End

Returns
the shortcut of the standard accelerator

Definition at line 689 of file kstandardshortcut.cpp.

◆ endOfLine()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::endOfLine ( )

Go to end of current line.

Default: End

Returns
the shortcut of the standard accelerator

Definition at line 697 of file kstandardshortcut.cpp.

◆ find() [1/2]

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::find ( )

Initiate a 'find' request in the current document.

Default: Ctrl-f

Returns
the shortcut of the standard accelerator

Definition at line 665 of file kstandardshortcut.cpp.

◆ find() [2/2]

KCONFIGGUI_EXPORT StandardShortcut KStandardShortcut::find ( const QKeySequence & keySeq)

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.

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

Definition at line 556 of file kstandardshortcut.cpp.

◆ findByName()

KCONFIGGUI_EXPORT StandardShortcut KStandardShortcut::findByName ( const QString & name)

Return the StandardShortcut id of the standard accelerator action which has name as its name, or AccelNone if none of them do.

Parameters
namethe name as returned by name(StandardShortcut id)
Returns
the id of the standard accelerator with the given name or AccelNone if there is no such accelerator
Since
5.71

Definition at line 574 of file kstandardshortcut.cpp.

◆ findNext()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::findNext ( )

Find the next instance of a stored 'find' Default: F3.

Returns
the shortcut of the standard accelerator

Definition at line 669 of file kstandardshortcut.cpp.

◆ findPrev()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::findPrev ( )

Find a previous instance of a stored 'find'.

Default: Shift-F3

Returns
the shortcut of the standard accelerator

Definition at line 673 of file kstandardshortcut.cpp.

◆ forward()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::forward ( )

Forward.

Default: ALT+Right

Returns
the shortcut of the standard accelerator

Definition at line 793 of file kstandardshortcut.cpp.

◆ forwardWord()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::forwardWord ( )

ForwardWord.

Default: Ctrl+Right

Returns
the shortcut of the standard accelerator

Definition at line 713 of file kstandardshortcut.cpp.

◆ fullScreen()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::fullScreen ( )

Full Screen Mode.

Default: Ctrl+Shift+F

Returns
the shortcut of the standard accelerator

Definition at line 733 of file kstandardshortcut.cpp.

◆ gotoLine()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::gotoLine ( )

Go to line.

Default: Ctrl+G

Returns
the shortcut of the standard accelerator

Definition at line 717 of file kstandardshortcut.cpp.

◆ guardedStandardShortcutInfo()

static KStandardShortcutInfo * KStandardShortcut::guardedStandardShortcutInfo ( StandardShortcut id)
static

Search for the KStandardShortcutInfo object associated with the given id.

Return a dummy entry with no name and an empty shortcut if id is invalid.

Definition at line 433 of file kstandardshortcut.cpp.

◆ hardcodedDefaultShortcut()

KCONFIGGUI_EXPORT QList< QKeySequence > KStandardShortcut::hardcodedDefaultShortcut ( StandardShortcut id)

Returns the hardcoded default shortcut for id.

This does not take into account the user's configuration.

Parameters
idthe id of the accelerator
Returns
the default shortcut of the accelerator

Definition at line 584 of file kstandardshortcut.cpp.

◆ help()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::help ( )

Help the user in the current situation.

Default: F1

Returns
the shortcut of the standard accelerator

Definition at line 745 of file kstandardshortcut.cpp.

◆ home()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::home ( )

Go to home page.

Default: Alt-Home

Returns
the shortcut of the standard accelerator

Definition at line 681 of file kstandardshortcut.cpp.

◆ initialize()

void KStandardShortcut::initialize ( StandardShortcut id)

Initialize the accelerator id by checking if it is overridden in the configuration file (and if it isn't, use the default).

On X11, if QApplication was initialized with GUI disabled, the default will always be used.

Definition at line 465 of file kstandardshortcut.cpp.

◆ label()

KCONFIGGUI_EXPORT QString KStandardShortcut::label ( StandardShortcut id)

Returns a localized label for user-visible display.

Parameters
idthe id of the accelerator
Returns
a localized label for the accelerator

Definition at line 529 of file kstandardshortcut.cpp.

◆ moveToTrash()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::moveToTrash ( )

Moves files or folders to the trash.

Default: Delete

Returns
the shortcut of the standard accelerator
Since
5.25

Definition at line 813 of file kstandardshortcut.cpp.

◆ name()

KCONFIGGUI_EXPORT QString KStandardShortcut::name ( StandardShortcut id)

Returns a unique name for the given accel.

Parameters
idthe id of the accelerator
Returns
the unique name of the accelerator

Definition at line 524 of file kstandardshortcut.cpp.

◆ next()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::next ( )

Scroll down one page.

Default: Next

Returns
the shortcut of the standard accelerator

Definition at line 705 of file kstandardshortcut.cpp.

◆ nextCompletion()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::nextCompletion ( )

Iterate through a list when completion returns multiple items.

Default: Ctrl+Down

Returns
the shortcut of the standard accelerator

Definition at line 757 of file kstandardshortcut.cpp.

◆ open()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::open ( )

Open file.

Default: Ctrl-o

Returns
the shortcut of the standard accelerator

Definition at line 609 of file kstandardshortcut.cpp.

◆ openContextMenu()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::openContextMenu ( )

Open a context menu for the object with keyboard focus.

Necessary for accessibility. Default: Menu, Shift+F10

Returns
the shortcut of the standard accelerator
Since
6.0

Definition at line 829 of file kstandardshortcut.cpp.

◆ openMainMenu()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::openMainMenu ( )

Open a main menu like the menu bar or a hamburger menu.

Necessary for accessibility. Default: F10

Returns
the shortcut of the standard accelerator
Since
6.0

Definition at line 825 of file kstandardshortcut.cpp.

◆ openNew()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::openNew ( )

Create a new document (or whatever).

Default: Ctrl-n

Returns
the shortcut of the standard accelerator

Definition at line 613 of file kstandardshortcut.cpp.

◆ paste()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::paste ( )

Paste contents of clipboard at mouse/cursor position.

Default: Ctrl-v

Returns
the shortcut of the standard accelerator

Definition at line 641 of file kstandardshortcut.cpp.

◆ pasteSelection()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::pasteSelection ( )

Paste the selection at mouse/cursor position.

Default: Ctrl-Shift-Insert

Returns
the shortcut of the standard accelerator

Definition at line 645 of file kstandardshortcut.cpp.

◆ preferences()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::preferences ( )

Opens the app's settings window.

Default: Ctrl+Shift+Comma

Returns
the shortcut of the standard accelerator
Since
5.64

Definition at line 817 of file kstandardshortcut.cpp.

◆ prevCompletion()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::prevCompletion ( )

Iterate through a list when completion returns multiple items.

Default: Ctrl+Up

Returns
the shortcut of the standard accelerator

Definition at line 753 of file kstandardshortcut.cpp.

◆ print()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::print ( )

Print current document.

Default: Ctrl-p

Returns
the shortcut of the standard accelerator

Definition at line 625 of file kstandardshortcut.cpp.

◆ prior()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::prior ( )

Scroll up one page.

Default: Prior

Returns
the shortcut of the standard accelerator

Definition at line 701 of file kstandardshortcut.cpp.

◆ quit()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::quit ( )

Quit the program.

Default: Ctrl-q

Returns
the shortcut of the standard accelerator

Definition at line 629 of file kstandardshortcut.cpp.

◆ redo()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::redo ( )

Redo last operation.

Default: Shift-Ctrl-z

Returns
the shortcut of the standard accelerator

Definition at line 661 of file kstandardshortcut.cpp.

◆ reload()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::reload ( )

Reload.

Default: F5

Returns
the shortcut of the standard accelerator

Definition at line 777 of file kstandardshortcut.cpp.

◆ renameFile()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::renameFile ( )

Rename files or folders.

Default: F2

Returns
the shortcut of the standard accelerator
Since
5.25

Definition at line 805 of file kstandardshortcut.cpp.

◆ replace()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::replace ( )

Find and replace matches.

Default: Ctrl-r

Returns
the shortcut of the standard accelerator

Definition at line 677 of file kstandardshortcut.cpp.

◆ rotateDown()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::rotateDown ( )

Help users iterate through a list of entries.

Default: Down

Returns
the shortcut of the standard accelerator

Definition at line 765 of file kstandardshortcut.cpp.

◆ rotateUp()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::rotateUp ( )

Help users iterate through a list of entries.

Default: Up

Returns
the shortcut of the standard accelerator

Definition at line 761 of file kstandardshortcut.cpp.

◆ sanitizeShortcutList()

static void KStandardShortcut::sanitizeShortcutList ( QList< QKeySequence > * list)
static

Definition at line 448 of file kstandardshortcut.cpp.

◆ save()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::save ( )

Save current document.

Default: Ctrl-s

Returns
the shortcut of the standard accelerator

Definition at line 621 of file kstandardshortcut.cpp.

◆ saveShortcut()

KCONFIGGUI_EXPORT void KStandardShortcut::saveShortcut ( StandardShortcut id,
const QList< QKeySequence > & newShortcut )

Saves the new shortcut cut for standard accel id.

Definition at line 493 of file kstandardshortcut.cpp.

◆ selectAll()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::selectAll ( )

Select all.

Default: Ctrl-A

Returns
the shortcut of the standard accelerator

Definition at line 781 of file kstandardshortcut.cpp.

◆ shortcut()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::shortcut ( StandardShortcut id)

Returns the keybinding for accel.

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

Parameters
idthe id of the accelerator

Definition at line 545 of file kstandardshortcut.cpp.

◆ shortcutWatcher()

KCONFIGGUI_EXPORT StandardShortcutWatcher * KStandardShortcut::shortcutWatcher ( )

Returns the global KStandardShortcutWatcher instance of this program.

In addition to the notifying about changes it also keeps the information returned by the functions in KStandardShortcut up to date. The object is created by the first call to this function.

Since
5.91

Definition at line 40 of file kstandardshortcutwatcher.cpp.

◆ showHideHiddenFiles()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::showHideHiddenFiles ( )

Shows or hides hidden files.

Defaults: Ctrl+H, Alt+.

Returns
the shortcut of the standard accelerator
Since
5.70

Definition at line 821 of file kstandardshortcut.cpp.

◆ showMenubar()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::showMenubar ( )

Show Menu Bar.

Default: Ctrl-M

Returns
the shortcut of the standard accelerator

Definition at line 797 of file kstandardshortcut.cpp.

◆ substringCompletion()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::substringCompletion ( )

Find a string within another string or list of strings.

Default: Ctrl-T

Returns
the shortcut of the standard accelerator

Definition at line 769 of file kstandardshortcut.cpp.

◆ tabNext()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::tabNext ( )

Next Tab.

Default: Ctrl-<

Returns
the shortcut of the standard accelerator

Definition at line 725 of file kstandardshortcut.cpp.

◆ tabPrev()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::tabPrev ( )

Previous Tab.

Default: Ctrl->

Returns
the shortcut of the standard accelerator

Definition at line 729 of file kstandardshortcut.cpp.

◆ undo()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::undo ( )

Undo last operation.

Default: Ctrl-z

Returns
the shortcut of the standard accelerator

Definition at line 657 of file kstandardshortcut.cpp.

◆ up()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::up ( )

Up.

Default: Alt+Up

Returns
the shortcut of the standard accelerator

Definition at line 785 of file kstandardshortcut.cpp.

◆ whatsThis()

const QList< QKeySequence > & KStandardShortcut::whatsThis ( )

What's This button.

Default: Shift+F1

Returns
the shortcut of the standard accelerator

Definition at line 773 of file kstandardshortcut.cpp.

◆ zoomIn()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::zoomIn ( )

Zoom in.

Default: Ctrl-Plus

Returns
the shortcut of the standard accelerator

Definition at line 737 of file kstandardshortcut.cpp.

◆ zoomOut()

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::zoomOut ( )

Zoom out.

Default: Ctrl-Minus

Returns
the shortcut of the standard accelerator

Definition at line 741 of file kstandardshortcut.cpp.

Variable Documentation

◆ g_infoStandardShortcut

KStandardShortcutInfo KStandardShortcut::g_infoStandardShortcut[]
static

Array of predefined KStandardShortcutInfo objects, which cover all the "standard" accelerators.

Each enum value from StandardShortcut should appear in this table.

Definition at line 67 of file kstandardshortcut.cpp.

◆ whatsThis

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::whatsThis ( StandardShortcut id)

Returns an extended WhatsThis description for the given accelerator.

What's This button.

Parameters
idthe id of the accelerator
Returns
a localized description of the accelerator

Default: Shift+F1

Returns
the shortcut of the standard accelerator

Definition at line 536 of file kstandardshortcut.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:11:49 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.