MCPcopy Create free account
hub / github.com/docusealco/docuseal / adjustShortcutsForPlatform

Method adjustShortcutsForPlatform

app/javascript/elements/html_editor.js:526–536  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

524 }
525
526 adjustShortcutsForPlatform () {
527 if ((navigator.userAgentData?.platform)?.toLowerCase()?.includes('mac')) {
528 this.querySelectorAll('.tooltip[data-tip]').forEach(tooltip => {
529 const tip = tooltip.getAttribute('data-tip')
530
531 if (tip && tip.includes('Ctrl')) {
532 tooltip.setAttribute('data-tip', tip.replace(/Ctrl/g, '⌘'))
533 }
534 })
535 }
536 }
537
538 bold (e) {
539 e.preventDefault()

Callers 1

connectedCallbackMethod · 0.45

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected