From f29e4041fa6b2a8d8c04602c5dc839823fda3ae3 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Wed, 18 Nov 2009 11:14:34 +0100 Subject: Activate Find with slash, too. Never noticed this browser behaviour :D --- src/mainwindow.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/mainwindow.cpp') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 7a9e3ad6..977ebbdb 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -268,10 +268,14 @@ void MainWindow::setupActions() KStandardAction::print(this, SLOT(printRequested()), actionCollection()); KStandardAction::quit(this , SLOT(close()), actionCollection()); - KStandardAction::find(m_findBar, SLOT(show()) , actionCollection()); + a = KStandardAction::find(m_findBar, SLOT(show()), actionCollection()); + QList shortcutFindList; + shortcutFindList << KStandardShortcut::find() << QKeySequence( Qt::Key_Slash ); + a->setShortcuts( shortcutFindList ); + KStandardAction::findNext(this, SLOT(findNext()) , actionCollection()); KStandardAction::findPrev(this, SLOT(findPrevious()) , actionCollection()); - + a = KStandardAction::fullScreen(this, SLOT(viewFullScreen(bool)), this, actionCollection()); QList shortcutFullScreenList; shortcutFullScreenList << KStandardShortcut::fullScreen() << QKeySequence( Qt::Key_F11 ); -- cgit v1.2.1