mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-20 20:31:25 +08:00
Extracted keyboard nav. from dropdowns to share w/ search
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import * as Dates from "../services/dates";
|
||||
import {onSelect} from "../services/dom";
|
||||
import {debounce} from "../services/util";
|
||||
|
||||
/**
|
||||
* Page Editor
|
||||
@ -69,7 +70,8 @@ class PageEditor {
|
||||
});
|
||||
|
||||
// Changelog controls
|
||||
this.changelogInput.addEventListener('change', this.updateChangelogDisplay.bind(this));
|
||||
const updateChangelogDebounced = debounce(this.updateChangelogDisplay.bind(this), 300, false);
|
||||
this.changelogInput.addEventListener('input', updateChangelogDebounced);
|
||||
|
||||
// Draft Controls
|
||||
onSelect(this.saveDraftButton, this.saveDraft.bind(this));
|
||||
|
Reference in New Issue
Block a user