File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
debugger/components/debugger-toolbar Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -23,10 +23,6 @@ export const DebuggerToolbarComponent: React.FC<
2323 const setActiveWidget$ = useDebuggerStore ( ( state ) => state . setActiveWidget$ ) ;
2424 const isDecoder = activeWidget$ === DebuggerWidgetValues . DECODER ;
2525
26- useEffect ( ( ) => {
27- tabRefs . current [ isDecoder ? 0 : 1 ] ?. focus ( ) ;
28- } , [ isDecoder ] ) ;
29-
3026 const handleKeyDown = ( e : React . KeyboardEvent < HTMLLIElement > ) => {
3127 const { key } = e ;
3228
Original file line number Diff line number Diff line change 1- import React from "react" ;
1+ import React , { useEffect } from "react" ;
22import { EditorComponent } from "@/features/common/components/code-editor/editor.component" ;
33
44interface JwtEditorComponentProps {
@@ -14,6 +14,8 @@ export const JwtEditorComponent: React.FC<JwtEditorComponentProps> = ({
1414 < EditorComponent
1515 aria-label = "JWT editor input"
1616 value = { token }
17+ autoFocus
18+ focusOnWindowFocus
1719 onValueChange = { ( code ) => handleJwtChange ( code ) }
1820 highlight = { ( code ) => {
1921 if ( ! code ) {
You can’t perform that action at this time.
0 commit comments