({
event,
}: {
event: MouseEvent | KeyboardEvent;
})
| 78 | }; |
| 79 | |
| 80 | export const isSpecialKeyPressed = ({ |
| 81 | event, |
| 82 | }: { |
| 83 | event: MouseEvent | KeyboardEvent; |
| 84 | }): boolean => { |
| 85 | return event.ctrlKey || event.metaKey; |
| 86 | }; |
| 87 | |
| 88 | // If focus is in any iframe owned by the host page rather than the |
| 89 | // extension's own surface, global shortcuts should bail out so we don't |
no outgoing calls
no test coverage detected