diff --git a/react/features/toolbox/components/web/Toolbox.tsx b/react/features/toolbox/components/web/Toolbox.tsx index d5adec8bdb7c2..bcc44874525a8 100644 --- a/react/features/toolbox/components/web/Toolbox.tsx +++ b/react/features/toolbox/components/web/Toolbox.tsx @@ -12,7 +12,7 @@ import { setHangupMenuVisible, setOverflowMenuVisible, setToolbarHovered, - showToolbox + setToolboxVisible } from '../../actions.web'; import { getJwtDisabledButtons, @@ -193,15 +193,22 @@ export default function Toolbox({ }, [ dispatch ]); /** - * Toggle the toolbar visibility when tabbing into it. + * Handle focus on the toolbar. * * @returns {void} */ - const onTabIn = useCallback(() => { - if (!toolbarVisible) { - dispatch(showToolbox()); - } - }, [ toolbarVisible, dispatch ]); + const handleFocus = useCallback(() => { + dispatch(setToolboxVisible(true)); + }, [ dispatch ]); + + /** + * Handle blur the toolbar.. + * + * @returns {void} + */ + const handleBlur = useCallback(() => { + dispatch(setToolboxVisible(false)); + }, [ dispatch ]); if (iAmRecorder || iAmSipGateway) { return null; @@ -238,7 +245,8 @@ export default function Toolbox({