mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
ensure Safari goes through our clipboard service. ref #142057
This commit is contained in:
parent
380e4da91f
commit
35f8ba6f66
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue