This commit is contained in:
Timothy J. Baek 2024-06-16 12:09:55 -06:00
parent 9f7ef209fa
commit 1c355929fc
2 changed files with 5 additions and 2 deletions

View File

@ -124,7 +124,7 @@
const onBlur = () => {
shiftKey = false;
selectedChatId = false;
selectedChatId = null;
};
window.addEventListener('keydown', onKeyDown);
@ -477,6 +477,9 @@
on:select={() => {
selectedChatId = chat.id;
}}
on:unselect={() => {
selectedChatId = null;
}}
on:delete={(e) => {
if ((e?.detail ?? '') === 'shift') {
deleteChatHandler(chat.id);

View File

@ -231,7 +231,7 @@
dispatch('delete');
}}
onClose={() => {
selected = false;
dispatch('unselect');
}}
>
<button