Skip to content

Implementation of Cell Copy/Paste Events Using Clipboard Events#1

Closed
naoki-tateyama wants to merge 1 commit intomainfrom
cell-clipboard-event
Closed

Implementation of Cell Copy/Paste Events Using Clipboard Events#1
naoki-tateyama wants to merge 1 commit intomainfrom
cell-clipboard-event

Conversation

@naoki-tateyama
Copy link
Owner

@naoki-tateyama naoki-tateyama commented Feb 24, 2024

Hi, maintainers!
This PR implements onCopy/onPaste events as Cell Clipboard Events not parts of keydown events.

Previously, copy and paste events were implemented as part of keydown events.
This could be slightly confusing for developers. For example, preventGridDefault method cannot be used to prevent the default onCopy behavior.
With this PR, developers can now utilize Clipboard events, allowing for development with natural APIs without the need to use navigator.clipboard.writeText.

Additionally, by separating the processes that were aggregated under keydown events into onCopy and onPaste events, it is possible to reduce the complexity of the implementation.

Related PRs

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