mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 19:36:12 +01:00
fix searching the second time in quick search, #1694
This commit is contained in:
@@ -49,7 +49,11 @@ export default class QuickSearchWidget extends BasicWidget {
|
|||||||
this.$widget.find('.input-group-append').on('shown.bs.dropdown', () => this.search());
|
this.$widget.find('.input-group-append').on('shown.bs.dropdown', () => this.search());
|
||||||
|
|
||||||
utils.bindElShortcut(this.$searchString, 'return', () => {
|
utils.bindElShortcut(this.$searchString, 'return', () => {
|
||||||
this.$dropdownToggle.dropdown('show');
|
if (this.$dropdownMenu.is(":visible")) {
|
||||||
|
this.search(); // just update already visible dropdown
|
||||||
|
} else {
|
||||||
|
this.$dropdownToggle.dropdown('show');
|
||||||
|
}
|
||||||
|
|
||||||
this.$searchString.focus();
|
this.$searchString.focus();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user