Skip to content

Preventing default behaviour for tab key press or overriding it #1871

@balint-kada

Description

@balint-kada

Is there an existing issue for this?

Use case

I would want to implement a way, so tab key can work the same way as in a default text field:

  • When pressing tab, text editor loses focus and goes on to the next focus
  • In flutter-quill, right now if you press tab, a tab char gets placed into the text

Right now i've tried handling the tab keyevent before it gets handled in the QuillKeyboardListener, but haven't found a way to make it work.

Is there a way to make this work without implementing an override inside flutter-quill?

Proposal

I would want flutter quill to have an onKeyEvent override, or something similar to quillJs's keyboard module, where you can use keyBindings: https://quilljs.com/docs/modules/keyboard

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions