web component rtl scrollbar add vertical and horizontal

This commit is contained in:
Subhonbek 2023-07-18 14:52:16 +03:00
parent e4525eefaa
commit 9acab40a4c

View File

@ -45,6 +45,7 @@ const HotkeyPanel = ({
(e.key === "Esc" || e.key === "Escape") && onClose();
useEffect(() => {
scrollRef.current && scrollRef?.current?.view.focus();
document.addEventListener("keyup", onKeyPress);
return () => document.removeEventListener("keyup", onKeyPress);