(e: KeyboardEvent)
| 323 | editorsInPreviewMode.push(id) |
| 324 | |
| 325 | const handler = (e: KeyboardEvent) => { |
| 326 | if ( |
| 327 | !e.defaultPrevented && |
| 328 | editorsInPreviewMode.at(-1) === id && |
| 329 | isModifierKey(e) && |
| 330 | e.shiftKey && |
| 331 | e.key === 'p' |
| 332 | ) { |
| 333 | setView?.('edit') |
| 334 | setTimeout(() => inputRef.current?.focus()) |
| 335 | e.preventDefault() |
| 336 | } |
| 337 | } |
| 338 | document.addEventListener('keydown', handler) |
| 339 | |
| 340 | return () => { |
nothing calls this directly
no test coverage detected