agent optimization

This commit is contained in:
team 1
2026-02-17 16:14:37 +01:00
parent 2c443c0f1e
commit 750cd5fdd6

View File

@@ -45,6 +45,13 @@ document.addEventListener('DOMContentLoaded', () => {
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 () => {
const prompt = promptEl.value.trim();
if (!prompt) return;