ensure Safari goes through our clipboard service. ref #142057

This commit is contained in:
Tyler Leonhardt 2022-03-02 11:35:04 -08:00
parent 380e4da91f
commit 35f8ba6f66
No known key found for this signature in database
GPG key ID: 1BC2B6244363E77E

View file

@ -39,7 +39,9 @@ export const CutAction = supportsCut ? registerCommand(new MultiCommand({
kbOpts: (
// Do not bind cut keybindings in the browser,
// since browsers do that for us and it avoids security prompts
platform.isNative ? {
// the exception to that logic is Safari which needs to go through
// our clipboard service. More info why can be found in the clipboard service.
platform.isNative || platform.isSafari ? {
primary: KeyMod.CtrlCmd | KeyCode.KeyX,
win: { primary: KeyMod.CtrlCmd | KeyCode.KeyX, secondary: [KeyMod.Shift | KeyCode.Delete] },
weight: KeybindingWeight.EditorContrib