From 2b46925e77a2b9685953d8a8e5a448e7e4ee6d5b Mon Sep 17 00:00:00 2001 From: Timo K Date: Wed, 22 Apr 2026 11:51:33 +0200 Subject: [PATCH] Call window.controls.onBackButtonPressed if esc is pressed without any focus. --- src/useCallViewKeyboardShortcuts.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/useCallViewKeyboardShortcuts.ts b/src/useCallViewKeyboardShortcuts.ts index 728a2614..3d9654be 100644 --- a/src/useCallViewKeyboardShortcuts.ts +++ b/src/useCallViewKeyboardShortcuts.ts @@ -68,6 +68,8 @@ export function useCallViewKeyboardShortcuts( } else if (KeyToReactionMap[event.key]) { event.preventDefault(); sendReaction(KeyToReactionMap[event.key]); + } else if (event.key === "Escape") { + window.controls.onBackButtonPressed?.(); } }, [