mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 18:56:34 +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:
commit
457ba3665e
@ -1285,6 +1285,13 @@ void BrowserWindow::keyPressEvent(QKeyEvent* event)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case Qt::Key_Slash:
|
||||||
|
if (m_useSingleKeyShortcuts) {
|
||||||
|
action(QSL("Edit/Find"))->trigger();
|
||||||
|
event->accept();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
case Qt::Key_1:
|
case Qt::Key_1:
|
||||||
number = 1;
|
number = 1;
|
||||||
break;
|
break;
|
||||||
|
@ -1990,7 +1990,7 @@
|
|||||||
<item row="4" column="0" colspan="2">
|
<item row="4" column="0" colspan="2">
|
||||||
<widget class="QCheckBox" name="singleKeyShortcuts">
|
<widget class="QCheckBox" name="singleKeyShortcuts">
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string>Existing shortcuts:<br/><b>1</b> - previous tab<br/><b>2</b> - next tab</string>
|
<string>Existing shortcuts:<br/><b>1</b> - previous tab<br/><b>2</b> - next tab<br/><b>/</b> - search/find</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Use single key shortcuts</string>
|
<string>Use single key shortcuts</string>
|
||||||
|
Loading…
Reference in New Issue
Block a user