16 lines · 519 B · TypeScript
RawDownload
import type { PreviewAnnotationSubmission } from "@t3tools/contracts"; interface AnnotationKeyboardEvent {  readonly key: string;  readonly metaKey: boolean;  readonly ctrlKey: boolean;  readonly shiftKey: boolean;  readonly isComposing: boolean;} export function resolveAnnotationSubmission(  event: AnnotationKeyboardEvent,): PreviewAnnotationSubmission | null {  if (event.key !== "Enter" || event.shiftKey || event.isComposing) return null;  return event.metaKey || event.ctrlKey ? "send" : "attach";}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t