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