diff --git a/static/js/drafts.js b/static/js/drafts.js index 70ab6bed23..feebe50590 100644 --- a/static/js/drafts.js +++ b/static/js/drafts.js @@ -471,13 +471,13 @@ export function drafts_handle_events(e, event_key) { // This detects up arrow key presses when the draft overlay // is open and scrolls through the drafts. - if (event_key === "up_arrow") { + if (event_key === "up_arrow" || event_key === "vim_up") { drafts_scroll(row_before_focus()); } // This detects down arrow key presses when the draft overlay // is open and scrolls through the drafts. - if (event_key === "down_arrow") { + if (event_key === "down_arrow" || event_key === "vim_down") { drafts_scroll(row_after_focus()); } diff --git a/static/js/hotkey.js b/static/js/hotkey.js index b28b7b2ade..2e33e1acb7 100644 --- a/static/js/hotkey.js +++ b/static/js/hotkey.js @@ -569,6 +569,8 @@ export function process_hotkey(e, hotkey) { switch (event_name) { case "up_arrow": case "down_arrow": + case "vim_up": + case "vim_down": case "backspace": case "delete": if (overlays.drafts_open()) {