16 lines · 455 B · TypeScript
RawDownload
interface CommentSubmitShortcutEvent {  readonly key: string;  readonly metaKey: boolean;  readonly ctrlKey: boolean;} /** Shared guard for inline comment composers that submit on Command/Ctrl+Enter. */export function isCommentSubmitShortcut(  event: CommentSubmitShortcutEvent,  value: string,  pending: boolean,): boolean {  return (    !pending && (event.metaKey || event.ctrlKey) && event.key === "Enter" && value.trim().length > 0  );}

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