mirror of
https://github.com/vector-im/element-call.git
synced 2026-05-01 09:54:37 +00:00
Call window.controls.onBackButtonPressed if esc is pressed without any
focus.
This commit is contained in:
@@ -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?.();
|
||||
}
|
||||
},
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user