1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +01:00

Merge pull request #1285 from kdave/singlekey-search

[BrowserWindow] Add slash as a single key shortcut for search
This commit is contained in:
David Rosca 2014-04-10 11:12:39 +02:00
commit 457ba3665e
2 changed files with 8 additions and 1 deletions

View File

@ -1285,6 +1285,13 @@ void BrowserWindow::keyPressEvent(QKeyEvent* event)
}
break;
case Qt::Key_Slash:
if (m_useSingleKeyShortcuts) {
action(QSL("Edit/Find"))->trigger();
event->accept();
}
break;
case Qt::Key_1:
number = 1;
break;

View File

@ -1990,7 +1990,7 @@
<item row="4" column="0" colspan="2">
<widget class="QCheckBox" name="singleKeyShortcuts">
<property name="toolTip">
<string>Existing shortcuts:&lt;br/>&lt;b>1&lt;/b> - previous tab&lt;br/>&lt;b>2&lt;/b> - next tab</string>
<string>Existing shortcuts:&lt;br/>&lt;b>1&lt;/b> - previous tab&lt;br/>&lt;b>2&lt;/b> - next tab&lt;br/>&lt;b>/&lt;/b> - search/find</string>
</property>
<property name="text">
<string>Use single key shortcuts</string>