remove safari special-casing for paste (#1470)

Previously, we had a bunch of special-casing around paste to support
safari quirks on desktop and ios.

Since upgrading radix-ui and useGesture, these are no longer needed and
were actually causing issues. This diff removes the special casing for
paste and makes it a normal action that get triggered the same way as
any other.

### Change Type
- [x] `patch` — Bug Fix

### Test Plan

1. Copy text outside of tldraw, paste in tldraw with the context menu,
edit menu, and keyboard shortcut
2. Repeat for images outside of tldraw
3. Repeat for shapes inside of tldraw

### Release Notes

[fixes a regression introduced during this release]
This commit is contained in:
alex 2023-05-26 09:24:21 +01:00 committed by GitHub
parent 042edeb4b4
commit f8b6ee6ab9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 30 additions and 101 deletions

View file

@ -97,12 +97,7 @@ export function MenuSchemaProvider({ overrides, children }: MenuSchemaProviderPr
'clipboard-actions',
menuItem(actions['cut'], { disabled: noneSelected }),
menuItem(actions['copy'], { disabled: noneSelected }),
{
id: 'MENU_PASTE',
type: 'custom',
disabled: !showMenuPaste,
readonlyOk: false,
}
menuItem(actions['paste'], { disabled: !showMenuPaste })
),
menuGroup(
'conversions',