From 2d2d76a715f8d684ba9a70e149e1e1bed9702116 Mon Sep 17 00:00:00 2001 From: azivner Date: Thu, 28 Dec 2017 22:57:35 -0500 Subject: [PATCH] enter on note tree can also give focus to the editor --- public/javascripts/note_tree.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/javascripts/note_tree.js b/public/javascripts/note_tree.js index 256470854..d9cd89ff7 100644 --- a/public/javascripts/note_tree.js +++ b/public/javascripts/note_tree.js @@ -442,6 +442,9 @@ const noteTree = (function() { "ctrl+return": node => { noteDetailEl.focus(); }, + "return": node => { + noteDetailEl.focus(); + }, // code below shouldn't be necessary normally, however there's some problem with interaction with context menu plugin // after opening context menu, standard shortcuts don't work, but they are detected here // so we essentially takeover the standard handling with our implementation.