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.

compose: Ignore shift key for list indent shortcuts.

Nishant JS885696ab6479
diff --git a/web/src/compose_ui.ts b/web/src/compose_ui.ts
index 418fb6a0f7e..f634875cb73 100644
--- a/web/src/compose_ui.ts
+++ b/web/src/compose_ui.ts
@@ -684,7 +684,7 @@ export function handle_keydown(
event.preventDefault();
}
- if (isCmdOrCtrl && (key === "]" || key === "[")) {
+ if (isCmdOrCtrl && !event.shiftKey && (key === "]" || key === "[")) {
if (handle_list_indent($textarea, key === "]")) {
event.preventDefault();
event.stopPropagation();