Skip to content

Commit 388035a

Browse files
committed
fix: include reply textarea in shortcut action return type
1 parent eeee66d commit 388035a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎resources/js/hooks/use-keyboard-shortcuts.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ export function focusCommit(commit: HTMLElement): void {
5151
*
5252
* A deleted commit's actions are inert, which stops pointers and focus but not a scripted click.
5353
*/
54-
function focusedCommitAction(key: string): HTMLButtonElement | null {
54+
function focusedCommitAction(
55+
key: string,
56+
): HTMLButtonElement | HTMLTextAreaElement | null {
5557
return commitActionForShortcut(
5658
key,
5759
document.activeElement?.closest('[data-reply], [data-commit]') ?? null,

0 commit comments

Comments
 (0)