Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

inbox: Let hotkey handle the escape keypress if we don't.

Aman Agrawal9ac4ad22924e
diff --git a/web/src/hotkey.js b/web/src/hotkey.js
index 9b0d58eef60..4dde1fc9ee4 100644
--- a/web/src/hotkey.js
+++ b/web/src/hotkey.js
@@ -658,7 +658,6 @@ export function process_hotkey(e, hotkey) {
case "right_arrow":
case "tab":
case "shift_tab":
- case "escape":
case "vim_up":
case "vim_down":
case "vim_left":
diff --git a/web/src/inbox_ui.js b/web/src/inbox_ui.js
index 6717f0cddf8..afb7384e04d 100644
--- a/web/src/inbox_ui.js
+++ b/web/src/inbox_ui.js
@@ -8,7 +8,6 @@ import render_inbox_view from "../templates/inbox_view/inbox_view.hbs";
import * as buddy_data from "./buddy_data";
import * as compose_closed_ui from "./compose_closed_ui";
import * as hash_util from "./hash_util";
-import * as hashchange from "./hashchange";
import {is_visible, set_visible} from "./inbox_util";
import * as keydown_util from "./keydown_util";
import * as left_sidebar_navigation_area from "./left_sidebar_navigation_area";
@@ -725,9 +724,6 @@ export function change_focused_element(input_key) {
col_focus -= 1;
set_list_focus(input_key);
return true;
- case "escape":
- hashchange.set_hash_to_default_view();
- return false;
}
}