Skip to content

Inline style toggling fails with WeChat Keyboard on iOS #2660

@moonxiaot1

Description

@moonxiaot1

Have you checked for an existing issue?

Flutter Quill Version

11.4.2

Steps to Reproduce

When using the WeChat Keyboard (微信输入法) on iOS, toggling an inline style like Bold or Italic before typing does not work. The toolbar
button does not stay in its active state, and the subsequently typed text does not have the style applied.

This issue seems to be specific to the WeChat Keyboard, as the functionality works correctly with the default iOS keyboard and other
third-party keyboards like Sogou.

To Reproduce
Steps to reproduce the behavior:

  1. Use an iOS device.
  2. Set the current keyboard to WeChat Keyboard (微信输入法).
  3. Open the Quill editor.
  4. Tap the 'Bold' (B) button on the toolbar without any text being selected.
  5. Observe the 'Bold' button's state.
  6. Start typing with the WeChat Keyboard.

Expected behavior

  • After step 4, the 'Bold' button on the toolbar should become active/highlighted to indicate that the toggled style is active.
  • The text typed in step 6 should be bold.

Actual behavior

  • After step 4, the 'Bold' button on the toolbar remains in its inactive state.
  • The text typed in step 6 is not bold.

Screenshots/Videos

1.mp4

Environment

  • flutter_quill version: 11.4.2
  • Flutter version: 3.27.0
  • OS: iOS 11 ,13
  • Keyboard: WeChat Keyboard (微信输入法)

Expected results

fix the issue

Actual results

the 'Bold' button on the toolbar remains in its inactive state.

Additional Context

Screenshots / Video demonstration

[Attach media here]

Logs
[Paste logs here]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions