diff --git a/articleview.hh b/articleview.hh index 8c650aa5..b849b0dc 100644 --- a/articleview.hh +++ b/articleview.hh @@ -136,12 +136,12 @@ public slots: /// Goes forward in history void forward(); -public: - /// Takes the focus to the view void focus() { ui.definition->setFocus( Qt::ShortcutFocusReason ); } +public: + /// Reloads the view void reload() { ui.definition->reload(); } diff --git a/scanpopup.cc b/scanpopup.cc index a4c92cd4..26c32401 100644 --- a/scanpopup.cc +++ b/scanpopup.cc @@ -229,6 +229,11 @@ ScanPopup::ScanPopup( QWidget * parent, connect( &focusTranslateLineAction, SIGNAL( triggered() ), this, SLOT( focusTranslateLine() ) ); + QAction * const focusArticleViewAction = new QAction( this ); + focusArticleViewAction->setShortcutContext( Qt::WidgetWithChildrenShortcut ); + focusArticleViewAction->setShortcut( QKeySequence( "Ctrl+N" ) ); + addAction( focusArticleViewAction ); + connect( focusArticleViewAction, SIGNAL( triggered() ), definition, SLOT( focus() ) ); switchExpandModeAction.setShortcuts( QList< QKeySequence >() << QKeySequence( Qt::CTRL + Qt::Key_8 ) <<