4 ms·
fyi: for chatboxes that may take CJK inputs, you MUST use "shift+enter to send" pattern. There is a reason why most multinational chat/LLM app providers always
by numpad0 1y ago
fyi: for chatboxes that may take CJK inputs, you MUST use "shift+enter to send" pattern. There is a reason why most multinational chat/LLM app providers always do that instead of simple enter to send even for single-line chatboxes; because plain enter to send breaks input for CJK users.
Specifically, Input Method Editors needed for CJK inputs(esp. for C and J), to convert ambiguous semi-readable forms into proper readable text, use enter to finalize after candidates were iterated with spacebar. While IME engines don't interchange between different languages, I believe basically all of them roughly follow this pattern.
Unless you specifically wants to exclude CJK users, you have to either detect presence of IME and work with it so that enter do nothing to the app unless conditions are met. Switching to shift+enter works too.
1: https://github.com/anthropics/claude-code/issues/8405 https://github.com/anthropics/claude-code/issues/8405
2: https://www.youtube.com/watch?v=mY6cg7w2eQU https://www.youtube.com/watch?v=mY6cg7w2eQU
3: https://youtu.be/sYAnawy_VoA?feature=shared&t=282 https://youtu.be/sYAnawy_VoA?feature=shared&t=282
4: https://www.youtube.com/watch?v=VmoeZ_W3WXo https://www.youtube.com/watch?v=VmoeZ_W3WXo
- wrasee 1y agoWhat’s CJK input? I’m guessing Chinese Japanese Korean?
- ishouldbework 1y ago[dead]
- chrisshroba 1y agoLooks like you’re correct! https://en.m.wikipedia.org/wiki/CJK_characters https://en.m.wikipedia.org/wiki/CJK_characters
- numpad0 1y agoyes, the gif in the link[1] shows how it works, and a dupe issue[2] describes detailed "fully proper" fix. There's at least four dupes and one PR already, that situation kind of implies severity. 1: https://github.com/anthropics/claude-code/issues/8405#issuecomment-3349950790 https://github.com/anthropics/claude-code/issues/8405#issuec... 2: https://github.com/anthropics/claude-code/issues/8466 https://github.com/anthropics/claude-code/issues/8466
- johanyc 1y agoOn that note, does it affect korean though? It seems they don't need to select characters from the menu. I tried typing random characters here: https://urcook.com/kr.html https://urcook.com/kr.html