Skip to content

react: missing Enter keypress for standard tapback reactions #53

@jordanstern

Description

@jordanstern

Bug

Standard tapback reactions (love, like, dislike, laugh, emphasis, question) open the tapback menu but never confirm the selection. The custom emoji code path presses Enter (key code 36) after typing the emoji, but the standard reaction path doesn't.

Steps to reproduce

  1. imsg react --chat-id 1 -r love
  2. Tapback menu opens in Messages.app
  3. Nothing is selected — menu just stays open

Root cause

In ReactCommand.swift, the standard reaction AppleScript sends keystroke reactionKey but never follows with key code 36 (Enter) to confirm. The custom emoji path at line ~128 has this:

keystroke customEmoji
delay 0.1
key code 36

But the standard path at line ~148 is missing the Enter:

keystroke reactionKey
-- missing: delay 0.1 / key code 36

Fix

Add delay 0.1 and key code 36 after keystroke reactionKey in the standard reaction AppleScript, matching the custom emoji path.

Version: 0.5.0 / macOS 15 (Sequoia)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions