Skip to content

Commit

Permalink
Merge pull request #794 from ynput/762-settings-display-warning-for-c…
Browse files Browse the repository at this point in the history
…lipboard-paste-errors-due-to-browser-permissions

Settings: Added explanation & link to the paste data dialog when clipboard permissions are missing
  • Loading branch information
Innders authored Sep 12, 2024
2 parents 6f882f5 + bce8822 commit b3bd89b
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion src/context/pasteContext.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,32 @@ const PasteModal = () => {
<Button onClick={() => submit(null)} label="Cancel" />
</div>
)

const header = (
<p style={{ display: 'inline' }}>
Paste Data
<span style={{ display: 'inline-block', margin: '0px 8px' }}> - </span>
<span>
<a
href="https://support.google.com/chrome/answer/114662?hl=en"
target="_blank"
rel="noreferrer noopener"
style={{
textDecoration: 'underline',
fontSize: '14px',
color: 'var(--md-sys-color-outline)',
}}
data-tooltip="Ensure your browser clipboard permissions are set to 'Allow'."
>
Why is pasting not working?
</a>
</span>
</p>
)

return (
<Dialog
header="Paste Data"
header={header}
footer={footer}
isOpen
size="lg"
Expand Down

0 comments on commit b3bd89b

Please sign in to comment.