Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
balint-kada opened this issue May 17, 2024 · 0 comments
Open
1 task done

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

balint-kada opened this issue May 17, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@balint-kada
Copy link

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

@balint-kada balint-kada added the enhancement New feature or request label May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant