From 934f85e178a7c751d423001e7d60c92ba2ea70a5 Mon Sep 17 00:00:00 2001 From: gramps Date: Mon, 13 Jul 2026 15:46:42 -0700 Subject: [PATCH] fix: use Ctrl+Enter for web search, not Shift+Enter Shift+Enter is the universal convention for inserting a newline. Ctrl+Enter is the convention for alternate submit (Gmail, Slack, etc.). --- templates/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/index.html b/templates/index.html index 9e1ca41..7cd7dee 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1604,8 +1604,8 @@ function updateTopbarTokens(pct) { updateTopbarTokens(0); userInput.addEventListener('input', function() { this.style.height = 'auto'; this.style.height = Math.min(this.scrollHeight, 200) + 'px'; }); userInput.addEventListener('keydown', e => { - if (e.key === 'Enter' && !e.shiftKey) { e.preventDefault(); sendMessage(); return; } - if (e.key === 'Enter' && e.shiftKey) { e.preventDefault(); sendSearch(); return; } + if (e.key === 'Enter' && !e.shiftKey && !e.ctrlKey) { e.preventDefault(); sendMessage(); return; } + if (e.key === 'Enter' && e.ctrlKey) { e.preventDefault(); sendSearch(); return; } if (e.key === 'ArrowUp') { e.preventDefault(); if (messageHistory.length === 0) return;