Gemini: Enter to Newline & Ctrl+Enter to Send

Ooldjin
2026-01-16T13:43:33Z

Enter inserts a newline (via native Shift+Enter proxy), Ctrl+Enter sends the message. Fully compatible with Firefox & Chrome.

Stop accidental sends on Google Gemini! 🛑

This UserScript modifies the default key behavior on gemini.google.com to match the experience of standard code editors and IDEs.

✨ Key Features:

Enter: Inserts a new line (instead of sending the message).

Ctrl+Enter (Windows/Linux) or Cmd+Enter (macOS): Sends the message.

Firefox Compatible: Uses an advanced event proxy method to ensure perfect compatibility with Firefox, resolving common issues where the "Enter" key would become unresponsive.

IME Friendly: Smart detection prevents script interference while typing in Chinese, Japanese, or other IME-based languages (no more accidental newlines while selecting candidates).

💡 Why use this? If you often find yourself sending incomplete messages by accident while trying to start a new paragraph, this script is for you.

Code generated by Google Gemini.