docs: Fix capitalization of keyboard keys.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2020-08-10 17:09:14 -07:00
committed by Tim Abbott
parent c155403884
commit fb2e56e3c9
28 changed files with 158 additions and 158 deletions

View File

@@ -471,7 +471,7 @@ exports.drafts_handle_events = function (e, event_key) {
}
const focused_draft_id = row_with_focus().data("draft-id");
// Allows user to delete drafts with backspace
// Allows user to delete drafts with Backspace
if (event_key === "backspace" || event_key === "delete") {
if (focused_draft_id !== undefined) {
const draft_row = row_with_focus();
@@ -498,7 +498,7 @@ exports.drafts_handle_events = function (e, event_key) {
}
}
// This handles when pressing enter while looking at drafts.
// This handles when pressing Enter while looking at drafts.
// It restores draft that is focused.
if (event_key === "enter") {
if (document.activeElement.parentElement.hasAttribute("data-draft-id")) {