send_button: Suppress Send tooltip on tabbing to send.

This commit is contained in:
Karl Stolley 2023-05-22 12:16:29 -05:00 committed by Tim Abbott
parent eeea5c1713
commit 9f99235368
1 changed files with 4 additions and 0 deletions

View File

@ -317,6 +317,10 @@ export function initialize() {
delegate("body", {
target: "#compose-send-button",
delay: EXTRA_LONG_HOVER_DELAY,
// By default, tippyjs uses a trigger value of "mouseenter focus",
// but by specifying "mouseenter", this will prevent showing the
// Send tooltip when tabbing to the Send button.
trigger: "mouseenter",
appendTo: () => document.body,
onShow(instance) {
if (user_settings.enter_sends) {