feat(popup_editor): focus on editor automatically for easier editing

This commit is contained in:
Elian Doran
2025-07-11 16:52:09 +03:00
parent 8dca79ecf2
commit 4fc2b0fa5e

View File

@@ -121,6 +121,7 @@ export default class PopupEditorDialog extends Container<BasicWidget> {
await this.handleEventInChildren("activeContextChanged", { noteContext: this.noteContext }); await this.handleEventInChildren("activeContextChanged", { noteContext: this.noteContext });
this.setVisibility(true); this.setVisibility(true);
await this.handleEventInChildren("focusOnDetail", { ntxId: this.noteContext.ntxId });
}); });
$dialog.on("hidden.bs.modal", () => { $dialog.on("hidden.bs.modal", () => {
const $typeWidgetEl = $dialog.find(".note-detail-printable"); const $typeWidgetEl = $dialog.find(".note-detail-printable");