# Common Keyboard Shortcuts for the ChatGPT Desktop App: Sending Messages with Ctrl+Enter or ⌘+Enter

> Discover essential ChatGPT desktop app keyboard shortcuts like Ctrl+Enter or ⌘+Enter to send messages instantly and boost your productivity. Learn more now.

- Repository: [lencx/ChatGPT](https://github.com/lencx/ChatGPT)
- Tags: how-to-guide
- Published: 2026-03-06

---

**The ChatGPT desktop app by lencx supports a single global keyboard shortcut—Ctrl+Enter on Windows/Linux or ⌘+Enter on macOS—to instantly send messages without clicking the Send button.**

The lencx/ChatGPT repository provides an open-source desktop wrapper for ChatGPT built with Tauri and React. Understanding the available **common keyboard shortcuts for the ChatGPT desktop app** helps power users streamline their workflow and submit queries faster than using the mouse alone.

## Primary Keyboard Shortcut for Sending Messages

The desktop client implements one universal shortcut for message submission that adapts to your operating system. In [`src/view/Ask.tsx`](https://github.com/lencx/ChatGPT/blob/main/src/view/Ask.tsx), the application registers a platform-aware hotkey using the `react-hotkeys-hook` library to intercept the standard Enter key combination.

When you press **Ctrl+Enter** on Windows or Linux, or **⌘+Enter** (Meta+Enter) on macOS, the application triggers the same `handleSend` routine used by the Send button. This prevents the default behavior of inserting a new line in the textarea and instead transmits your message immediately via the Tauri backend command `ask_send`.

### Cross-Platform Implementation Details

The shortcut logic checks the operating system through the `isMac` flag provided by [`src/hooks/useInfo.tsx`](https://github.com/lencx/ChatGPT/blob/main/src/hooks/useInfo.tsx). This boolean determines whether the hook listens for `meta+enter` or `ctrl+enter` keystrokes.

```tsx
// src/view/Ask.tsx
const { isMac } = useInfo();

useHotkeys(isMac ? 'meta+enter' : 'ctrl+enter', async (event) => {
  event.preventDefault();
  await handleSend();
}, { enableOnFormTags: true }, [message]);

```

The `enableOnFormTags: true` option ensures the shortcut works even when the textarea has focus, while `event.preventDefault()` stops the browser from inserting a newline character.

## UI Feedback and Tooltip Indicators

The Send button provides visual confirmation of the available shortcut through its tooltip. In [`src/view/Ask.tsx`](https://github.com/lencx/ChatGPT/blob/main/src/view/Ask.tsx), the `title` prop of the Send icon dynamically displays the correct key combination based on the user's platform.

```tsx
import { SendIcon } from '../icons/Send';

<SendIcon 
  size={30} 
  onClick={handleSend}
  title={`Send message (${isMac ? '⌘⏎' : '⌃⏎'})`}
/>

```

This implementation references [`src/icons/Send.tsx`](https://github.com/lencx/ChatGPT/blob/main/src/icons/Send.tsx) and ensures users can discover the **ChatGPT desktop app keyboard shortcuts** without consulting documentation, as the tooltip appears on hover.

## Summary

- The lencx/ChatGPT desktop app defines exactly **one global keyboard shortcut** for sending messages: **Ctrl+Enter** on Windows/Linux or **⌘+Enter** on macOS.
- The shortcut is implemented in [`src/view/Ask.tsx`](https://github.com/lencx/ChatGPT/blob/main/src/view/Ask.tsx) using the `react-hotkeys-hook` library with platform detection from [`src/hooks/useInfo.tsx`](https://github.com/lencx/ChatGPT/blob/main/src/hooks/useInfo.tsx).
- Pressing the key combination triggers the `handleSend` function, calls the Tauri `ask_send` command, and prevents default newline insertion via `event.preventDefault()`.
- The Send button tooltip in [`src/icons/Send.tsx`](https://github.com/lencx/ChatGPT/blob/main/src/icons/Send.tsx) dynamically displays the correct shortcut symbol (⌘⏎ or ⌃⏎) to aid discoverability.

## Frequently Asked Questions

### What keyboard shortcuts are available in the lencx ChatGPT desktop app?

The application currently supports a single shortcut for message submission. According to the source code in [`src/view/Ask.tsx`](https://github.com/lencx/ChatGPT/blob/main/src/view/Ask.tsx), pressing **Ctrl+Enter** on Windows and Linux or **⌘+Enter** on macOS sends the current chat input immediately. No other keyboard shortcuts are defined in the current codebase.

### How do I send a message without clicking the Send button?

Type your query in the textarea and press **Ctrl+Enter** (or **⌘+Enter** on macOS). The `useHotkeys` hook in [`Ask.tsx`](https://github.com/lencx/ChatGPT/blob/main/Ask.tsx) intercepts this keystroke, prevents the default newline behavior, and invokes the `handleSend` function to transmit your message via the Tauri backend.

### Does the ChatGPT desktop app support custom keyboard shortcuts?

No. Analysis of the lencx/ChatGPT codebase shows no configuration interface or additional hotkey bindings beyond the platform-specific send shortcut. The `react-hotkeys-hook` implementation in [`src/view/Ask.tsx`](https://github.com/lencx/ChatGPT/blob/main/src/view/Ask.tsx) is hardcoded for message transmission only.

### Where is the keyboard shortcut logic defined in the source code?

The primary logic resides in [`src/view/Ask.tsx`](https://github.com/lencx/ChatGPT/blob/main/src/view/Ask.tsx) where the `useHotkeys` hook registers the key combination. Platform detection occurs through [`src/hooks/useInfo.tsx`](https://github.com/lencx/ChatGPT/blob/main/src/hooks/useInfo.tsx), and the visual indicator appears in [`src/icons/Send.tsx`](https://github.com/lencx/ChatGPT/blob/main/src/icons/Send.tsx) via the tooltip title property.