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

Method adjustShortcutsForPlatform

app/javascript/elements/markdown_editor.js:259–269  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

257 }
258
259 adjustShortcutsForPlatform () {
260 if ((navigator.userAgentData?.platform || navigator.platform)?.toLowerCase()?.includes('mac')) {
261 this.querySelectorAll('.tooltip[data-tip]').forEach(tooltip => {
262 const tip = tooltip.getAttribute('data-tip')
263
264 if (tip && tip.includes('Ctrl')) {
265 tooltip.setAttribute('data-tip', tip.replace(/Ctrl/g, '⌘'))
266 }
267 })
268 }
269 }
270
271 bold (e) {
272 e.preventDefault()

Callers 1

connectedCallbackMethod · 0.45

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected