mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 04:59:04 +01:00
fix(tab): editor not focused after switching tabs
This commit is contained in:
parent
1ecce11113
commit
0f1c505823
@ -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}
|
||||
*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user