()
| 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() |
no test coverage detected