mirror of
https://github.com/zadam/trilium.git
synced 2026-05-07 05:17:32 +02:00
fix(tab): editor not focused after switching tabs
This commit is contained in:
@@ -71,6 +71,15 @@ export default abstract class TypeWidget extends NoteContextAwareWidget {
|
||||
}
|
||||
}
|
||||
|
||||
activeNoteChangedEvent() {
|
||||
if (!this.isActiveNoteContext()) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Restore focus to the editor when switching tabs.
|
||||
this.focus();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user