correct tabindex so that tab from note title jumps to note content

This commit is contained in:
azivner
2017-08-25 19:30:26 -04:00
parent 4a5d29b83d
commit 1b3a113639
3 changed files with 5 additions and 2 deletions

View File

@@ -76,6 +76,9 @@ $(document).ready(function() {
onChange: noteChanged
}
});
// so that tab jumps from note title (which has tabindex 1)
$(".note-editable").attr("tabindex", 2);
});
var globalNote;

View File

@@ -7,7 +7,7 @@ function notecase2html(note) {
let all = note.formatting.concat(note.links).concat(note.images);
all.sort(function compare(a, b) {
return a.note_offset - b.note_offset;
return a.note_offset - b.note_offset;
});
let offset = 0;