Skip to content

macOS: Keyboard UX issues for pasted images and media viewer #127

@laosh1

Description

@laosh1

While I understand this is the iOS client, it runs exceptionally well on Apple Silicon Macs. I'm reporting two macOS-specific UX issues that would greatly improve the desktop experience when using the app on a Mac.

Issue 1: Cannot Send Pasted Image with Enter Key Directly
Description

When an image is pasted into the chat input box from the clipboard, it cannot be sent by simply pressing the "Enter" key.
Actual Behavior

After pasting an image, pressing the "Enter" key does nothing. The user must first click the caption field to give it focus, and only then will pressing "Enter" send the image.
Expected Behavior

After pasting an image, pressing the "Enter" key should immediately send the image, without requiring an extra click to focus on the caption field.
Steps to Reproduce

Copy an image to the clipboard.

Paste the image into the Telegram chat input box.

Press the "Enter" key. (Result: Nothing happens).

Manually click the caption input field below the image.

Press the "Enter" key again. (Result: The image is sent successfully).

Issue 2: 'Esc' Key Does Not Close the Media Viewer
Description

When an image or video is opened in the full-screen media viewer, it cannot be closed using the "Escape" (Esc) key.
Actual Behavior

When viewing media and pressing the "Esc" key, the media viewer remains open. The user must manually click the "X" button to close it.
Expected Behavior

Pressing the "Esc" key should dismiss the media viewer and return to the chat, which is standard, expected behavior for media lightboxes in most macOS applications.
Steps to Reproduce

Open any image from a chat to view it full-screen.

Press the "Esc" key. (Result: The media viewer does not close).

Environment

Device: MacBook Air M2

OS: macOS 15.5

App version: 11.11.2 (223)

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    qualityNon-blocking improvements for Swiftgram features

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions