Feature description
It would be a bit smoother and easier if the main ChatGPT text input box was autofocused as soon as the window is opened with the hotkey.
Motivation
Smoother and easier way to invoke chatgpt, more like the default Cmd+Space Spotlight search on Mac.
Alternatives
Thinking this could be possible with some custom javascript to find the element and focus on it. Something like:
function focusOnInput () {
// This currently works because there is only a single `<textarea>` element on the ChatGPT UI page.
document.getElementsByTagName("textarea")[0].focus()
}
-
And then calling this function when the Open Window hotkey is pressed.
-
Or Perhaps another option would be to hook into document.addEventListener("visibilitychange", focusOnInput), if the Page Visibility API works for this sort of application. Unclear if this would work when bringing the window into focus, but if it does, it would work for opening the window with a mouse or using the Application Switcher too (Cmd + Tab).
Additional context
No response
Feature description
It would be a bit smoother and easier if the main ChatGPT text input box was autofocused as soon as the window is opened with the hotkey.
Motivation
Smoother and easier way to invoke chatgpt, more like the default
Cmd+SpaceSpotlight search on Mac.Alternatives
Thinking this could be possible with some custom javascript to find the element and focus on it. Something like:
And then calling this function when the Open Window hotkey is pressed.
Or Perhaps another option would be to hook into
document.addEventListener("visibilitychange", focusOnInput), if the Page Visibility API works for this sort of application. Unclear if this would work when bringing the window into focus, but if it does, it would work for opening the window with a mouse or using the Application Switcher too (Cmd + Tab).Additional context
No response