Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
9f7ef209
"git@developer.sourcefind.cn:wangsen/paddle_dbnet.git" did not exist on "b8a65d4333cead891b6320b6f627f7aeb4fb155c"
Commit
9f7ef209
authored
Jun 16, 2024
by
Timothy J. Baek
Browse files
fix: chatlist
parent
fc1a66ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
src/lib/components/layout/Sidebar.svelte
src/lib/components/layout/Sidebar.svelte
+15
-2
No files found.
src/lib/components/layout/Sidebar.svelte
View file @
9f7ef209
...
@@ -120,18 +120,31 @@
...
@@ -120,18 +120,31 @@
}
}
};
};
document.addEventListener('keydown', onKeyDown);
const onFocus = () => {};
document.addEventListener('keyup', onKeyUp);
const onBlur = () => {
shiftKey = false;
selectedChatId = false;
};
window.addEventListener('keydown', onKeyDown);
window.addEventListener('keyup', onKeyUp);
window.addEventListener('touchstart', onTouchStart);
window.addEventListener('touchstart', onTouchStart);
window.addEventListener('touchend', onTouchEnd);
window.addEventListener('touchend', onTouchEnd);
window.addEventListener('focus', onFocus);
window.addEventListener('blur', onBlur);
return () => {
return () => {
window.removeEventListener('keydown', onKeyDown);
window.removeEventListener('keydown', onKeyDown);
window.removeEventListener('keyup', onKeyUp);
window.removeEventListener('keyup', onKeyUp);
window.removeEventListener('touchstart', onTouchStart);
window.removeEventListener('touchstart', onTouchStart);
window.removeEventListener('touchend', onTouchEnd);
window.removeEventListener('touchend', onTouchEnd);
window.removeEventListener('focus', onFocus);
window.removeEventListener('blur', onBlur);
};
};
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment