mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 18:56:34 +01:00
Focus improvements in locationbar and speed dial.
- when you start browser (or open new window) and you have open speed dial or empty page set, locationbar will now be focused so you can start writing address - when editing page in speed dial, after clicking on edit, url field will be automatically selected + focused
This commit is contained in:
parent
7174e217ec
commit
a80ad9d4b8
@ -174,18 +174,24 @@ void QupZilla::postLaunch()
|
||||
addTab = true;
|
||||
}
|
||||
|
||||
if (addTab) {
|
||||
m_tabWidget->addView(startUrl, tr("New tab"), TabWidget::CleanPage);
|
||||
}
|
||||
|
||||
aboutToShowHistoryMenu(false);
|
||||
aboutToShowBookmarksMenu();
|
||||
|
||||
if (addTab) {
|
||||
int index = m_tabWidget->addView(startUrl, tr("New tab"), TabWidget::CleanPage);
|
||||
m_tabWidget->setCurrentIndex(index);
|
||||
|
||||
if (startUrl.isEmpty() || startUrl.toString() == "qupzilla:speeddial") {
|
||||
locationBar()->setFocus();
|
||||
}
|
||||
}
|
||||
|
||||
if (m_tabWidget->getTabBar()->normalTabsCount() <= 0) { //Something went really wrong .. add one tab
|
||||
m_tabWidget->addView(m_homepage);
|
||||
}
|
||||
|
||||
setUpdatesEnabled(true);
|
||||
|
||||
emit startingCompleted();
|
||||
}
|
||||
|
||||
|
@ -68,6 +68,7 @@ function onEditClick(box) {
|
||||
$('#fadeOverlay').css({'filter' : 'alpha(opacity=95)'}).fadeIn();
|
||||
$('#fadeOverlay').click(function() { $(this).fadeOut("slow", function() {$("#fadeOverlay").remove();}); });
|
||||
$('#overlay-edit').click(function(event) { event.stopPropagation(); });
|
||||
$('#formUrl').focus();
|
||||
}
|
||||
|
||||
function onReloadClick(box) {
|
||||
|
Loading…
Reference in New Issue
Block a user