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

@ -27,7 +27,7 @@
</div> </div>
<div style="float: left; margin: 0 5px 5px 5px;" class="hide-toggle"> <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> <button class="btn btn-sm" onclick="encryptNote();">Encrypt</button>
</div> </div>

View File

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