Additional logging for calling service

This commit is contained in:
Fedor Indutny 2022-08-16 16:52:09 -07:00 committed by GitHub
parent 932043c58f
commit 5a3c04d630
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 28 additions and 19 deletions

View file

@ -23,7 +23,7 @@ function isCtrlOrAlt(ev: KeyboardEvent): boolean {
}
export function useActiveCallShortcuts(
hangUp: () => unknown
hangUp: (reason: string) => unknown
): KeyboardShortcutHandlerType {
return useCallback(
ev => {
@ -34,7 +34,7 @@ export function useActiveCallShortcuts(
ev.preventDefault();
ev.stopPropagation();
hangUp();
hangUp('Keyboard shortcut');
return true;
}