mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
fix searching the second time in quick search, #1694
This commit is contained in:
parent
19821b634f
commit
d476dfc53b
@ -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();
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user