mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 11:56:01 +01:00
keep focus when clicking on edit read only note
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import ButtonWidget from "./button_widget.js";
|
||||
import appContext from "../../services/app_context.js";
|
||||
|
||||
export default class EditButton extends ButtonWidget {
|
||||
isEnabled() {
|
||||
@@ -14,7 +15,7 @@ export default class EditButton extends ButtonWidget {
|
||||
.onClick(widget => {
|
||||
this.noteContext.readOnlyTemporarilyDisabled = true;
|
||||
|
||||
this.triggerEvent('readOnlyTemporarilyDisabled', {noteContext: this.noteContext});
|
||||
appContext.triggerEvent('readOnlyTemporarilyDisabled', {noteContext: this.noteContext});
|
||||
|
||||
this.refresh();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user