mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 03:46:37 +01:00
fix enter on title to the code editor
This commit is contained in:
2
package-lock.json
generated
2
package-lock.json
generated
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "trilium",
|
"name": "trilium",
|
||||||
"version": "0.33.5",
|
"version": "0.33.6",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -83,7 +83,11 @@ class TabContext {
|
|||||||
|
|
||||||
if (utils.isDesktop()) {
|
if (utils.isDesktop()) {
|
||||||
// keyboard plugin is not loaded in mobile
|
// 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");
|
this.$protectButton = this.$tabContent.find(".protect-button");
|
||||||
|
|||||||
Reference in New Issue
Block a user