fix(ui): add shift+click to bypass message deletion confirmation (#23888)
This commit is contained in:
@@ -1381,8 +1381,12 @@
|
|||||||
class="{isLastMessage || ($settings?.highContrastMode ?? false)
|
class="{isLastMessage || ($settings?.highContrastMode ?? false)
|
||||||
? 'visible'
|
? 'visible'
|
||||||
: 'invisible group-hover:visible'} p-1.5 hover:bg-black/5 dark:hover:bg-white/5 rounded-lg dark:hover:text-white hover:text-black transition"
|
: 'invisible group-hover:visible'} p-1.5 hover:bg-black/5 dark:hover:bg-white/5 rounded-lg dark:hover:text-white hover:text-black transition"
|
||||||
on:click={() => {
|
on:click={(e) => {
|
||||||
|
if (e.shiftKey) {
|
||||||
|
deleteMessageHandler();
|
||||||
|
} else {
|
||||||
showDeleteConfirm = true;
|
showDeleteConfirm = true;
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<svg
|
<svg
|
||||||
|
|||||||
@@ -551,8 +551,12 @@
|
|||||||
class="{($settings?.highContrastMode ?? false)
|
class="{($settings?.highContrastMode ?? false)
|
||||||
? ''
|
? ''
|
||||||
: 'invisible group-hover:visible'} p-1 rounded-sm dark:hover:text-white hover:text-black transition"
|
: 'invisible group-hover:visible'} p-1 rounded-sm dark:hover:text-white hover:text-black transition"
|
||||||
on:click={() => {
|
on:click={(e) => {
|
||||||
|
if (e.shiftKey) {
|
||||||
|
deleteMessageHandler();
|
||||||
|
} else {
|
||||||
showDeleteConfirm = true;
|
showDeleteConfirm = true;
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<svg
|
<svg
|
||||||
|
|||||||
Reference in New Issue
Block a user