mirror of
https://github.com/zadam/trilium.git
synced 2025-02-23 22:44:44 +08:00
fix moving notes with keyboard on Firefox, closes #1865
This commit is contained in:
parent
dc7c64a94d
commit
1d99c4e80b
1 changed files with 4 additions and 3 deletions
|
@ -1144,11 +1144,12 @@ export default class NoteTreeWidget extends TabAwareWidget {
|
|||
}
|
||||
|
||||
if (node) {
|
||||
node.setActive(true, {noEvents: true, noFocus: !activeNodeFocused});
|
||||
|
||||
if (activeNodeFocused) {
|
||||
node.setFocus(true);
|
||||
// needed by Firefox: https://github.com/zadam/trilium/issues/1865
|
||||
this.tree.$container.focus();
|
||||
}
|
||||
|
||||
await node.setActive(true, {noEvents: true, noFocus: !activeNodeFocused});
|
||||
}
|
||||
else {
|
||||
// this is used when original note has been deleted and we want to move the focus to the note above/below
|
||||
|
|
Loading…
Reference in a new issue