fix(ui): add shift+click to bypass message deletion confirmation (#23888)

This commit is contained in:
G30
2026-04-21 13:21:48 +09:00
committed by GitHub
parent e88e565ab4
commit 4790faba73
2 changed files with 12 additions and 4 deletions
@@ -551,8 +551,12 @@
class="{($settings?.highContrastMode ?? false)
? ''
: 'invisible group-hover:visible'} p-1 rounded-sm dark:hover:text-white hover:text-black transition"
on:click={() => {
showDeleteConfirm = true;
on:click={(e) => {
if (e.shiftKey) {
deleteMessageHandler();
} else {
showDeleteConfirm = true;
}
}}
>
<svg