mirror of
https://github.com/andrepimenta/claude-code-chat.git
synced 2025-12-14 09:39:36 +00:00
Fix close and open conversation
This commit is contained in:
@@ -1546,6 +1546,10 @@ const html = `<!DOCTYPE html>
|
||||
messageInput.addEventListener('keydown', (e) => {
|
||||
if (e.key === 'Enter' && !e.shiftKey) {
|
||||
e.preventDefault();
|
||||
const sendBtn = document.getElementById('sendBtn');
|
||||
if (sendBtn.disabled){
|
||||
return;
|
||||
}
|
||||
sendMessage();
|
||||
} else if (e.key === '@' && !e.ctrlKey && !e.metaKey) {
|
||||
// Don't prevent default, let @ be typed first
|
||||
|
||||
Reference in New Issue
Block a user