mirror of https://github.com/zulip/zulip.git
stream_popover: Use e.key instead of deprecated e.which.
Tested by making sure that Enter and other keys work as expected in the streams dropdown in the Move topic modal.
This commit is contained in:
parent
f2aae91cc1
commit
90bd3e9123
|
@ -407,7 +407,7 @@ export function register_click_handlers() {
|
|||
// and thus don't want to kill the natural bubbling of event.
|
||||
e.preventDefault();
|
||||
|
||||
if (e.type === "keypress" && e.which !== 13) {
|
||||
if (e.type === "keypress" && e.key !== "Enter") {
|
||||
return;
|
||||
}
|
||||
const stream_name = stream_data.maybe_get_stream_name(
|
||||
|
|
Loading…
Reference in New Issue