mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 01:36:24 +01:00
return focus back to note detail after quitting add link dialog
This commit is contained in:
@@ -137,6 +137,10 @@ function linkTypeChanged() {
|
||||
|
||||
$linkTypes.change(linkTypeChanged);
|
||||
|
||||
// return back focus to note text detail after quitting add link
|
||||
// the problem is that cursor position is reset
|
||||
$dialog.on("hidden.bs.modal", () => noteDetailText.focus());
|
||||
|
||||
export default {
|
||||
showDialog
|
||||
};
|
||||
Reference in New Issue
Block a user