mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
fix enter on title to the code editor
This commit is contained in:
@@ -83,7 +83,11 @@ class TabContext {
|
||||
|
||||
if (utils.isDesktop()) {
|
||||
// keyboard plugin is not loaded in mobile
|
||||
this.$noteTitle.bind('keydown', 'return', () => this.getComponent().focus());
|
||||
this.$noteTitle.bind('keydown', 'return', () => {
|
||||
this.getComponent().focus();
|
||||
|
||||
return false; // to not propagate the enter into the editor (causes issues with codemirror)
|
||||
});
|
||||
}
|
||||
|
||||
this.$protectButton = this.$tabContent.find(".protect-button");
|
||||
|
||||
Reference in New Issue
Block a user