agent optimization
This commit is contained in:
@@ -45,6 +45,13 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
|
|
||||||
loadHistory();
|
loadHistory();
|
||||||
|
|
||||||
|
promptEl.addEventListener('keydown', (e) => {
|
||||||
|
if (e.key === 'Enter' && !e.shiftKey) {
|
||||||
|
e.preventDefault(); // verhindert normalen Zeilenumbruch
|
||||||
|
sendBtn.click(); // löst vorhandene Send-Logik aus
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
sendBtn.addEventListener('click', async () => {
|
sendBtn.addEventListener('click', async () => {
|
||||||
const prompt = promptEl.value.trim();
|
const prompt = promptEl.value.trim();
|
||||||
if (!prompt) return;
|
if (!prompt) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user