mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
Fixed handling special chars when searching with locationbar shortcuts
This commit is contained in:
parent
cf5d399f00
commit
9872f3281f
@ -105,7 +105,7 @@ QUrl LocationBar::createUrl()
|
||||
int firstSpacePos = text().indexOf(" ");
|
||||
if (firstSpacePos != -1) {
|
||||
QString shortcut = text().mid(0, firstSpacePos);
|
||||
QString searchedString = text().mid(firstSpacePos).trimmed();
|
||||
QString searchedString = QUrl::toPercentEncoding(text().mid(firstSpacePos).trimmed());
|
||||
|
||||
SearchEngine en = mApp->searchEnginesManager()->engineForShortcut(shortcut);
|
||||
if (!en.name.isEmpty()) {
|
||||
|
@ -52,7 +52,7 @@ void Menu::mouseReleaseEvent(QMouseEvent* e)
|
||||
return;
|
||||
}
|
||||
|
||||
if (e->button() == Qt::LeftButton && e->modifiers() == Qt::NoModifier) {
|
||||
if ((e->button() == Qt::LeftButton || e->button() == Qt::RightButton) && e->modifiers() == Qt::NoModifier) {
|
||||
closeAllMenus();
|
||||
act->trigger();
|
||||
e->accept();
|
||||
|
Loading…
Reference in New Issue
Block a user