From f18383ba72c4fb9a6bb0a92e8eac66a137185cd9 Mon Sep 17 00:00:00 2001 From: Danny Date: Fri, 1 Nov 2024 18:44:18 +0100 Subject: [PATCH] docs: add context to useComposing hook (#5715) * docs: add context to useComposing hook * fix: run prettier --- docs/libraries/slate-react/hooks.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/libraries/slate-react/hooks.md b/docs/libraries/slate-react/hooks.md index 5b896a2f91..358655b607 100644 --- a/docs/libraries/slate-react/hooks.md +++ b/docs/libraries/slate-react/hooks.md @@ -12,6 +12,8 @@ React hooks for Slate editors Get the current `composing` state of the editor. It deals with `compositionstart`, `compositionupdate`, `compositionend` events. +Composition events are triggered by typing (composing) with a language that uses a composition character (e.g. Chinese, Japanese, Korean, etc.) [example](https://en.wikipedia.org/wiki/Input_method#/media/File:Typing_%EC%9E%88%EC%8A%B5%EB%8B%88%EB%8B%A4_in_Dubeolsik_keyboard_layout.gif). + #### `useFocused(): boolean` Get the current `focused` state of the editor.