diff --git a/ts/components/session/calling/CallInFullScreenContainer.tsx b/ts/components/session/calling/CallInFullScreenContainer.tsx index 9d5fb0379..63005592f 100644 --- a/ts/components/session/calling/CallInFullScreenContainer.tsx +++ b/ts/components/session/calling/CallInFullScreenContainer.tsx @@ -1,5 +1,6 @@ import React from 'react'; import { useDispatch, useSelector } from 'react-redux'; +import useKey from 'react-use/lib/useKey'; import styled from 'styled-components'; import { useVideoCallEventsListener } from '../../../hooks/useVideoEventListener'; import { setFullScreenCall } from '../../../state/ducks/conversations'; @@ -43,6 +44,9 @@ export const CallInFullScreenContainer = () => { dispatch(setFullScreenCall(false)); } + useKey('Escape', () => { + toggleFullScreenOFF(); + }); if ( !hasOngoingCall || !ongoingCallPubkey || diff --git a/ts/components/session/icon/Icons.tsx b/ts/components/session/icon/Icons.tsx index 8cfc0b086..c2a70eb6c 100644 --- a/ts/components/session/icon/Icons.tsx +++ b/ts/components/session/icon/Icons.tsx @@ -199,8 +199,8 @@ export const icons = { }, fullscreen: { path: - 'M372.939,216.545c-6.123,0-12.03,5.269-12.03,12.03v132.333H24.061V24.061h132.333c6.388,0,12.03-5.642,12.03-12.03 S162.409,0,156.394,0H24.061C10.767,0,0,10.767,0,24.061v336.848c0,13.293,10.767,24.061,24.061,24.061h336.848 c13.293,0,24.061-10.767,24.061-24.061V228.395C384.97,221.731,380.085,216.545,372.939,216.545zM372.939,0H252.636c-6.641,0-12.03,5.39-12.03,12.03s5.39,12.03,12.03,12.03h91.382L99.635,268.432 c-4.668,4.668-4.668,12.235,0,16.903c4.668,4.668,12.235,4.668,16.891,0L360.909,40.951v91.382c0,6.641,5.39,12.03,12.03,12.03 s12.03-5.39,12.03-12.03V12.03l0,0C384.97,5.558,379.412,0,372.939,0z', - viewBox: '0 0 384.97 384.97', + 'M205.801,122.042c-22.778,0-45.56,0-68.334,0c-6.081,0-11.301,5-11.301,11.14 c0.004,22.774,0.007,45.552,0.007,68.326c0.004,14.487,22.445,14.614,22.445,0.161c-0.004-13.777-0.004-27.55-0.004-41.326 c16.136,16.136,32.277,32.276,48.413,48.409c10.224,10.224,26.035-5.703,15.785-15.953c-16.11-16.11-32.217-32.213-48.323-48.319 c13.717,0,27.437,0,41.154,0C220.128,144.487,220.255,122.042,205.801,122.042zM323.064,261.753c0.004,13.777,0.004,27.546,0.004,41.323 c-16.136-16.136-32.276-32.276-48.413-48.413c-10.224-10.224-26.035,5.699-15.785,15.953c16.11,16.11,32.213,32.213,48.323,48.323 c-13.721,0-27.437,0.004-41.154,0.004c-14.487,0.004-14.614,22.445-0.161,22.445c22.778-0.004,45.56-0.007,68.334-0.007 c6.081-0.004,11.301-5,11.301-11.14c-0.004-22.774-0.007-45.548-0.007-68.323C345.506,247.427,323.064,247.3,323.064,261.753zM265.882,144.494c13.777-0.004,27.546-0.004,41.323-0.004 c-16.136,16.133-32.276,32.273-48.413,48.405c-10.224,10.224,5.699,26.035,15.953,15.785c16.11-16.106,32.213-32.209,48.323-48.316 c0,13.713,0.004,27.43,0.004,41.147c0.004,14.487,22.445,14.614,22.445,0.161c-0.004-22.774-0.007-45.552-0.007-68.326 c0-6.081-5-11.301-11.14-11.301c-22.774,0.004-45.548,0.007-68.323,0.007C251.556,122.053,251.428,144.494,265.882,144.494zM205.801,318.932c-13.777,0.004-27.55,0.004-41.323,0.004 c16.133-16.133,32.273-32.273,48.405-48.405c10.224-10.224-5.699-26.035-15.953-15.785c-16.11,16.106-32.213,32.213-48.319,48.319 c0-13.717,0-27.434,0-41.151c0-14.487-22.445-14.614-22.445-0.161c0,22.774,0,45.552,0,68.326c0,6.081,5,11.301,11.14,11.301 c22.778-0.004,45.552-0.007,68.326-0.007C220.128,341.373,220.255,318.932,205.801,318.932z', + viewBox: '80 80 310 310', ratio: 1, }, gear: {