From 703bda2ccbfa2c5b9f6ea2c323f6a97841bbfa63 Mon Sep 17 00:00:00 2001 From: John Tapsell Date: Tue, 4 Jan 2005 16:09:38 +0000 Subject: [PATCH] Bind the Escape key to close the main reader window. CCMAIL:kde-usability@kde.org svn path=/trunk/kdepim/; revision=375479 --- kmreadermainwin.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kmreadermainwin.cpp b/kmreadermainwin.cpp index e03491f88..a1a870248 100644 --- a/kmreadermainwin.cpp +++ b/kmreadermainwin.cpp @@ -205,7 +205,10 @@ void KMReaderMainWin::setupAccel() mPrintAction = KStdAction::print( this, SLOT( slotPrintMsg() ), actionCollection() ); - KStdAction::close( this, SLOT( close() ), actionCollection() ); + KAction *closeAction = KStdAction::close( this, SLOT( close() ), actionCollection() ); + KShortcut closeShortcut = closeAction->shortcut(); + closeShortcut.append( KKey(Key_Escape)); + closeAction->setShortcut(closeShortcut); //----- View Menu mViewSourceAction = new KAction( i18n("&View Source"), Key_V, this,