Skip to content

Commit 5d59de8

Browse files
authored
Clarify platform support of QuillEditorConfig.onKeyPressed (#2542)
* Correct info about platform support of QuillEditorConfig.onKeyPressed The documentation stated that this callback is only supported by desktop devices. I found that it is also supported by mobile devices when they have a hardware keyboard connected, which is great, because I needed to customize some Quill editor behavior for exactly this scenario. * Update editor_config.dart Fixed typo
1 parent b3beaea commit 5d59de8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/src/editor/config/editor_config.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,9 @@ class QuillEditorConfig {
139139

140140
/// A handler for keys that are pressed when the editor is focused.
141141
///
142-
/// This feature is supported on **desktop devices only**.
142+
/// This feature is supported on **desktop devices** and **mobile devices with a
143+
/// hardware keyboard connected.** It is not supported by virtual on-screen
144+
/// keyboards of touch devices.
143145
///
144146
/// # Example:
145147
/// To prevent the user from removing any **Embed Object**, try:

0 commit comments

Comments
 (0)