mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-31 18:26:20 -05:00
Solve issue #847: Keyboard autofocus on search filed at startup
Signed-off-by: Ettore Dreucci <ettore.dreucci@gmail.com>
This commit is contained in:
parent
cd46a08f4a
commit
03bd346432
@ -464,6 +464,11 @@ void MainWindow::setMenuActionState(DatabaseWidget::Mode mode)
|
||||
m_ui->actionDatabaseMerge->setEnabled(m_ui->tabWidget->currentIndex() != -1);
|
||||
|
||||
m_searchWidgetAction->setEnabled(true);
|
||||
|
||||
//if not already in search mode focus the search widget and select all its content
|
||||
if (!inSearch) {
|
||||
m_ui->toolBar->findChild<SearchWidget *>("SearchWidget")->searchFocus();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case DatabaseWidget::EditMode:
|
||||
|
@ -55,13 +55,13 @@ signals:
|
||||
|
||||
public slots:
|
||||
void databaseChanged(DatabaseWidget* dbWidget = 0);
|
||||
void searchFocus();
|
||||
|
||||
private slots:
|
||||
void startSearchTimer();
|
||||
void startSearch();
|
||||
void updateCaseSensitive();
|
||||
void updateLimitGroup();
|
||||
void searchFocus();
|
||||
|
||||
private:
|
||||
const QScopedPointer<Ui::SearchWidget> m_ui;
|
||||
|
Loading…
Reference in New Issue
Block a user