Additional logging for calling service
This commit is contained in:
parent
932043c58f
commit
5a3c04d630
7 changed files with 28 additions and 19 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue