Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
compose_box: Remove unreachable enter_sends cruft.
Karl Stolleye82c875bc364
diff --git a/web/src/click_handlers.js b/web/src/click_handlers.jsindex 164932028dd..cc25136f559 100644--- a/web/src/click_handlers.js+++ b/web/src/click_handlers.js@@ -691,11 +691,6 @@ export function initialize() {if ($target.is(".compose_mobile_button, .compose_mobile_button *")) {return;}-- if ($(".enter_sends").has(e.target).length) {- e.preventDefault();- return;- }}$("body").on("click", "#compose-content", handle_compose_click);@@ -835,7 +830,6 @@ export function initialize() {!$(e.target).closest(".micromodal").length &&!$(e.target).closest("[data-tippy-root]").length &&!$(e.target).closest(".typeahead").length &&- !$(e.target).closest(".enter_sends").length &&!$(e.target).closest(".flatpickr-calendar").length &&$(e.target).closest("body").length) {diff --git a/web/src/popover_menus.js b/web/src/popover_menus.jsindex edb09a413bc..18d3d910103 100644--- a/web/src/popover_menus.js+++ b/web/src/popover_menus.js@@ -23,7 +23,6 @@ export const popover_instances = {message_actions: null,stream_settings: null,compose_mobile_button: null,- compose_enter_sends: null,topics_menu: null,send_later: null,change_visibility_policy: null,@@ -92,10 +91,6 @@ export function get_starred_messages_popover() {return popover_instances.starred_messages;}-export function is_compose_enter_sends_popover_displayed() {- return popover_instances.compose_enter_sends?.state.isVisible;-}-export function is_personal_menu_popover_displayed() {return popover_instances.personal_menu?.state.isVisible;}diff --git a/web/src/tippyjs.js b/web/src/tippyjs.jsindex dd06d157744..3d4f96e8bf2 100644--- a/web/src/tippyjs.js+++ b/web/src/tippyjs.js@@ -4,7 +4,6 @@ import tippy, {delegate} from "tippy.js";import render_tooltip_templates from "../templates/tooltip_templates.hbs";import {$t} from "./i18n";-import * as popover_menus from "./popover_menus";import {user_settings} from "./user_settings";// For tooltips without data-tippy-content, we use the HTML content of@@ -242,20 +241,6 @@ export function initialize() {},});- delegate("body", {- target: [".enter_sends_true", ".enter_sends_false"],- delay: LONG_HOVER_DELAY,- content: $t({defaultMessage: "Change send shortcut"}),- onShow() {- // Don't show tooltip if the popover is displayed.- if (popover_menus.is_compose_enter_sends_popover_displayed()) {- return false;- }- return true;- },- appendTo: () => document.body,- });-delegate("body", {target: ".media-info-wrapper > .media-description > .title",appendTo: () => document.body,diff --git a/web/styles/compose.css b/web/styles/compose.cssindex 9306b365e12..f333a16c5b7 100644--- a/web/styles/compose.css+++ b/web/styles/compose.css@@ -935,40 +935,6 @@ textarea.new_message_textarea,}}-.open_enter_sends_dialog {- font-size: 12px;- height: 14px;- padding-left: 4px;- opacity: 0.7;- margin-bottom: 5px;- position: relative;- top: -2px;- cursor: pointer;-- @media (width < $mm_min) {- font-size: 11px;- }-- & kbd {- padding: 0 4px;- }-- &:hover {- opacity: 1;- }-- .enter_sends_true,- .enter_sends_false {- display: none;- }-- & i {- padding-left: 3px;- font-size: 12px;- font-weight: 600;- }-}-.drafts-item-in-popover {display: none;/* Only show the Drafts item in the popover when it's not visiblediff --git a/web/styles/dark_theme.css b/web/styles/dark_theme.cssindex 422964cab60..6f28c0ed47f 100644--- a/web/styles/dark_theme.css+++ b/web/styles/dark_theme.css@@ -94,7 +94,6 @@box-shadow: inset 0 1px 0 hsl(0deg 0% 0% / 20%);}- .open_enter_sends_dialog,.enter_sends_choices {color: hsl(236deg 33% 90%);