Call window.controls.onBackButtonPressed if esc is pressed without any

focus.
This commit is contained in:
Timo K
2026-04-22 11:51:33 +02:00
parent 50ad678a42
commit 2b46925e77

View File

@@ -68,6 +68,8 @@ export function useCallViewKeyboardShortcuts(
} else if (KeyToReactionMap[event.key]) { } else if (KeyToReactionMap[event.key]) {
event.preventDefault(); event.preventDefault();
sendReaction(KeyToReactionMap[event.key]); sendReaction(KeyToReactionMap[event.key]);
} else if (event.key === "Escape") {
window.controls.onBackButtonPressed?.();
} }
}, },
[ [