Added new action: Ctrl+Alt+Del will start the logout/shutdown sequence.
Since this uses kaccel, it is (of course) configurable. svn path=/trunk/kdebase/kwin/; revision=49834
This commit is contained in:
parent
ebbf5fe55c
commit
3396c20935
3 changed files with 10 additions and 0 deletions
|
@ -19,3 +19,5 @@
|
|||
keys->insertItem(i18n("Window resize"),"Window resize", "");
|
||||
|
||||
keys->insertItem(i18n("Mouse emulation"),"Mouse emulation", "F12");
|
||||
|
||||
keys->insertItem(i18n("Logout"),"Logout", "CTRL+ALT+Delete");
|
||||
|
|
|
@ -1752,6 +1752,8 @@ void Workspace::createKeybindings(){
|
|||
keys->connectItem( "Window resize", this, SLOT( slotWindowResize() ) );
|
||||
|
||||
keys->connectItem( "Mouse emulation", this, SLOT( slotMouseEmulation() ) );
|
||||
|
||||
keys->connectItem( "Logout", this, SLOT( slotLogout() ) );
|
||||
keys->readSettings();
|
||||
}
|
||||
|
||||
|
@ -1840,6 +1842,10 @@ void Workspace::slotMouseEmulation()
|
|||
}
|
||||
}
|
||||
|
||||
void Workspace::slotLogout()
|
||||
{
|
||||
kapp->requestShutDown();
|
||||
}
|
||||
|
||||
/*!
|
||||
Adjusts the desktop popup to the current values and the location of
|
||||
|
|
|
@ -209,6 +209,8 @@ public slots:
|
|||
|
||||
void slotResetAllClients();
|
||||
|
||||
void slotLogout();
|
||||
|
||||
private slots:
|
||||
void desktopPopupAboutToShow();
|
||||
void clientPopupAboutToShow();
|
||||
|
|
Loading…
Reference in a new issue