mirror of
https://github.com/vector-im/element-call.git
synced 2026-07-30 19:39:22 +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]) {
|
} 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?.();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
[
|
[
|
||||||
|
|||||||
Reference in New Issue
Block a user