Repository navigation
improve IME composition handling in useChatSubmit for better key event processing
Fixes an issue on WebKit (Safari / iOS) where the first Enter (or Mod+Enter) right after committing an IME conversion was ignored. isComposingRef is now re-evaluated on every keydown from the event's own evidence, so it can no longer get stuck at true when WebKit skips the keyup after a commit Enter.