mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
correct tabindex so that tab from note title jumps to note content
This commit is contained in:
parent
4a5d29b83d
commit
1b3a113639
@ -27,7 +27,7 @@
|
||||
</div>
|
||||
|
||||
<div style="float: left; margin: 0 5px 5px 5px;" class="hide-toggle">
|
||||
<input type="text" autocomplete="off" value="Welcome to Notecase web app!" id="noteTitle" style="font-size: x-large; border: 0; width: 600px;">
|
||||
<input autocomplete="off" value="Welcome to Notecase web app!" id="noteTitle" style="font-size: x-large; border: 0; width: 600px;" tabindex="1">
|
||||
|
||||
<button class="btn btn-sm" onclick="encryptNote();">Encrypt</button>
|
||||
</div>
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user