mirror of https://github.com/zulip/zulip.git
compose: Fix "Shift+Tab" behavior for stream dropdown in compose box.
We now open the stream dropdown if a user presses "Shift+Tab" from topic input in the compose box, instead of just changing the focus to be on dropdown toggle button.
This commit is contained in:
parent
f4dc5afe82
commit
c80807c962
|
@ -6,6 +6,7 @@ import * as common from "./common";
|
||||||
import * as compose from "./compose";
|
import * as compose from "./compose";
|
||||||
import * as compose_actions from "./compose_actions";
|
import * as compose_actions from "./compose_actions";
|
||||||
import * as compose_banner from "./compose_banner";
|
import * as compose_banner from "./compose_banner";
|
||||||
|
import * as compose_recipient from "./compose_recipient";
|
||||||
import * as compose_state from "./compose_state";
|
import * as compose_state from "./compose_state";
|
||||||
import * as condense from "./condense";
|
import * as condense from "./condense";
|
||||||
import * as copy_and_paste from "./copy_and_paste";
|
import * as copy_and_paste from "./copy_and_paste";
|
||||||
|
@ -582,6 +583,11 @@ export function process_shift_tab_key() {
|
||||||
return emoji_picker.navigate("shift_tab");
|
return emoji_picker.navigate("shift_tab");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($("#stream_message_recipient_topic").is(":focus")) {
|
||||||
|
compose_recipient.open_compose_stream_dropup();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue