Commit 92797c81 authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

Use Ctrl+Shift+F for search and F11 for fullscreen

Reason: Almost all editors and even many programs (konsole) do this in
KDE and other operating systems.
parent cdfd19ac
Pipeline #68879 passed with stage
in 6 minutes and 2 seconds
...@@ -343,7 +343,7 @@ KatePluginSearchView::KatePluginSearchView(KTextEditor::Plugin *plugin, KTextEdi ...@@ -343,7 +343,7 @@ KatePluginSearchView::KatePluginSearchView(KTextEditor::Plugin *plugin, KTextEdi
connect(container, &ContainerWidget::nextFocus, this, &KatePluginSearchView::nextFocus); connect(container, &ContainerWidget::nextFocus, this, &KatePluginSearchView::nextFocus);
QAction *a = actionCollection()->addAction(QStringLiteral("search_in_files")); QAction *a = actionCollection()->addAction(QStringLiteral("search_in_files"));
actionCollection()->setDefaultShortcut(a, QKeySequence(Qt::CTRL | Qt::ALT | Qt::Key_F)); actionCollection()->setDefaultShortcut(a, QKeySequence(Qt::CTRL | Qt::SHIFT | Qt::Key_F));
a->setText(i18n("Search in Files")); a->setText(i18n("Search in Files"));
connect(a, &QAction::triggered, this, &KatePluginSearchView::openSearchView); connect(a, &QAction::triggered, this, &KatePluginSearchView::openSearchView);
......
...@@ -405,6 +405,7 @@ void KateMainWindow::setupActions() ...@@ -405,6 +405,7 @@ void KateMainWindow::setupActions()
m_showFullScreenAction = KStandardAction::fullScreen(nullptr, nullptr, this, this); m_showFullScreenAction = KStandardAction::fullScreen(nullptr, nullptr, this, this);
actionCollection()->addAction(m_showFullScreenAction->objectName(), m_showFullScreenAction); actionCollection()->addAction(m_showFullScreenAction->objectName(), m_showFullScreenAction);
actionCollection()->setDefaultShortcut(m_showFullScreenAction, Qt::Key_F11);
connect(m_showFullScreenAction, &QAction::toggled, this, &KateMainWindow::slotFullScreen); connect(m_showFullScreenAction, &QAction::toggled, this, &KateMainWindow::slotFullScreen);
documentOpenWith = new KActionMenu(i18n("Open W&ith"), this); documentOpenWith = new KActionMenu(i18n("Open W&ith"), this);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment