File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed
frontends/web/src/components/spinner Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change 15
15
* limitations under the License.
16
16
*/
17
17
18
- import { useContext , useEffect } from 'react' ;
18
+ import { useContext } from 'react' ;
19
19
import { useTranslation } from 'react-i18next' ;
20
20
import { AppContext } from '../../contexts/AppContext' ;
21
21
import { MenuDark } from '../icon' ;
@@ -32,16 +32,6 @@ const Spinner = ({ text, guideExists }: TProps) => {
32
32
33
33
const { toggleGuide, toggleSidebar } = useContext ( AppContext ) ;
34
34
35
- const handleKeyDown = ( e : KeyboardEvent ) => {
36
- e . preventDefault ( ) ;
37
- ( document . activeElement as HTMLInputElement ) . blur ( ) ;
38
- } ;
39
-
40
- useEffect ( ( ) => {
41
- document . addEventListener ( 'keydown' , handleKeyDown ) ;
42
- return ( ) => document . removeEventListener ( 'keydown' , handleKeyDown ) ;
43
- } , [ ] ) ;
44
-
45
35
return (
46
36
< div className = { style . spinnerContainer } >
47
37
< div className = { style . togglersContainer } >
You can’t perform that action at this time.
0 commit comments