Question · Vibe coding with Claude Code course · Module 8: Slack clone

Quiz: isComposing in the message field

Why does handleKeyDown check event.nativeEvent.isComposing?

Answer options

  • To check whether the field is empty
  • To detect that someone pasted text from the clipboard
  • To block Shift+Enter
  • So an Enter that confirms a character in an input method does not send the message

You can check the correct answer by solving this task in the CodeWorlds game.