Skip to content

Commit

Permalink
Fixed chatbar always auto-focuses on 1st load ↞ [auto-sync from `adam…
Browse files Browse the repository at this point in the history
…lui/userscripts`]
  • Loading branch information
adamlui authored and kudo-sync-bot committed May 5, 2024
1 parent 11f1dba commit c72a516
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions duckduckgpt/greasemonkey/duckduckgpt.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
// @description:zu Faka amaphawu ase-ChatGPT kuvaliwe i-DuckDuckGo Search (okwesikhashana ngu-GPT-4!)
// @author KudoAI
// @namespace https://kudoai.com
// @version 2024.5.5
// @version 2024.5.5.1
// @license MIT
// @icon https://media.ddgpt.com/images/icons/duckduckgpt/icon48.png
// @icon64 https://media.ddgpt.com/images/icons/duckduckgpt/icon64.png
Expand Down Expand Up @@ -1140,8 +1140,8 @@
sendButton.addEventListener('mouseout', toggleTooltip)

// Focus chatbar if user typed in prev appShow()
if (appShow.submitSrc != 'relatedQuery') chatTextarea.focus()
appShow.submitSrc == null
if (appShow.submitSrc && appShow.submitSrc != 'relatedQuery') chatTextarea.focus()
appShow.submitSrc = 'none'

function handleEnter(event) {
if (event.key == 'Enter') {
Expand Down

0 comments on commit c72a516

Please sign in to comment.