Skip to content

fix(composer): support Chinese slash command trigger - #614

Open
Usernames686 wants to merge 1 commit into
xintaofei:mainfrom
Usernames686:codex/fix-chinese-slash-trigger
Open

fix(composer): support Chinese slash command trigger#614
Usernames686 wants to merge 1 commit into
xintaofei:mainfrom
Usernames686:codex/fix-chinese-slash-trigger

Conversation

@Usernames686

Copy link
Copy Markdown

Problem

When using a Chinese IME, the key that normally produces / produces , so users must switch input methods before opening slash commands.

Fixes #597.

Fix

Treat as an input-level alias for / when triggering slash commands. The alias is normalized to the existing internal / trigger, and command selection still creates the canonical slash-command reference.

The normalization is limited to slash-command triggering and token replacement. It does not replace normal Chinese punctuation in message content.

Tests

  • / still triggers slash commands
  • triggers the same slash command flow
  • normal Chinese remains unchanged
  • selected commands are serialized with /
  • composing Enter does not select a slash command

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

希望捕获中文输入法下的“、” 作为同键位英文下“/”

1 participant