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

Shift-Delete doesn't cut to clipboard (only deletes) #2694

Open
lnicola opened this issue Apr 16, 2019 · 2 comments
Open

Shift-Delete doesn't cut to clipboard (only deletes) #2694

lnicola opened this issue Apr 16, 2019 · 2 comments

Comments

@lnicola
Copy link

lnicola commented Apr 16, 2019

Do you want to request a feature or report a bug?

Bug IMO.

What's the current behavior?

Tested in Firefox 68 and Chromium 73 on Linux with the version that's deployed to https://www.slatejs.org/#/rich-text right now.

What's the expected behavior?

The selected text is deleted, but not copied to clipboard. Ctrl-X / Cmd-X work fine. Shift-Del should work just like Ctrl-X.

@brendancarney
Copy link
Collaborator

As far as I can tell, macOS does not have this behavior. I have confirmed this on Windows, even though I didn't know about it until today 🙂.

I wonder what events fire for this. If a cut event or something does, maybe this can be implemented without the need for OS specific logic.

@lnicola
Copy link
Author

lnicola commented Sep 22, 2019

I don't think there's anything like a cut event in browsers, but there's already a bit of platform-specific handling in https://github.com/ianstormtaylor/slate/blob/master/packages/slate-hotkeys/src/index.js.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants