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

handle contenteditable elements similar to input and textarea #228

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Yaffle
Copy link
Contributor

@Yaffle Yaffle commented Oct 29, 2022

No description provided.

The polyfill does not support contenteditable elements right now:
The cursor does not move with arrow keys with ARROW mode OR shift+<arrow key> does not do text selection with SHIFTARROW mode.
This change adds handling of contenteditable elements to the code which handles `input` and `textarea` elements.

Well.. my use case is pretty special, it may be, please consider if contenteditable support is needed.
HTMLInputElement#textLength is not supported in some browsers
@Yaffle Yaffle changed the title handel contenteditable elements similar to input and textarea handle contenteditable elements similar to input and textarea Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant