fix focus issue from title to the text content with tab/enter

This commit is contained in:
zadam 2019-07-02 20:28:57 +02:00
parent 9c91b0459e
commit d18a20cc06
3 changed files with 4 additions and 4 deletions

2
package-lock.json generated
View file

@ -1,6 +1,6 @@
{ {
"name": "trilium", "name": "trilium",
"version": "0.33.4", "version": "0.33.5",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View file

@ -74,7 +74,7 @@ class NoteDetailText {
} }
focus() { focus() {
this.$component.focus(); this.$editorEl.focus();
} }
getEditor() { getEditor() {

View file

@ -11,8 +11,8 @@
<table class="note-detail-promoted-attributes"></table> <table class="note-detail-promoted-attributes"></table>
<div class="note-detail-component-wrapper"> <div class="note-detail-component-wrapper">
<div class="note-detail-text note-detail-component" tabindex="10000"> <div class="note-detail-text note-detail-component">
<div class="note-detail-text-editor"></div> <div class="note-detail-text-editor" tabindex="10000"></div>
</div> </div>
<div class="note-detail-code note-detail-component"></div> <div class="note-detail-code note-detail-component"></div>