Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
drafts: Allow vim up and down key to scroll between drafts.
aryanshridhar9f15de41f350
diff --git a/static/js/drafts.js b/static/js/drafts.jsindex 70ab6bed239..feebe505909 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.jsindex b28b7b2ade3..2e33e1acb76 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()) {