chatgpt floating menu enter key

Im trying to activate a chatgpt webview on keypress, and move focus to text box to prompt chat gpt. However, the text field isnt working as expected and enter key acts to add a newline, cmd+enter goes around this, but its inconvenient over time. Is there any way to fix this, besides listening for enter press on webview focus?

If you need to use WebView, you can try something like:

You can alternatively use Floating menu with a webview item, where you have options like:

"Steal Keyboard Focus On Show"
"Autofocus Text Field"

And in the action which will toggle the floating menu, you have: "Activate Window & Steal Keyboard Focus"