Temporarily disable hotkeys
This commit is contained in:
parent
76e8e2e999
commit
e83351f376
1 changed files with 9 additions and 5 deletions
|
@ -6,13 +6,17 @@ type IHotKeys = React.ComponentProps<typeof _HotKeys>;
|
||||||
/**
|
/**
|
||||||
* Wrapper component around `react-hotkeys`.
|
* Wrapper component around `react-hotkeys`.
|
||||||
* `react-hotkeys` is a legacy component, so confining its import to one place is beneficial.
|
* `react-hotkeys` is a legacy component, so confining its import to one place is beneficial.
|
||||||
|
*
|
||||||
|
* NOTE: Temporarily disabled due to incompatibility with Vite.
|
||||||
*/
|
*/
|
||||||
const HotKeys = React.forwardRef<any, IHotKeys>(({ children, ...rest }, ref) => {
|
const HotKeys = React.forwardRef<any, IHotKeys>(({ children, ...rest }, ref) => {
|
||||||
return (
|
// return (
|
||||||
<_HotKeys {...rest} ref={ref}>
|
// <_HotKeys {...rest} ref={ref}>
|
||||||
{children}
|
// {children}
|
||||||
</_HotKeys>
|
// </_HotKeys>
|
||||||
);
|
// );
|
||||||
|
|
||||||
|
return <>{children}</>;
|
||||||
});
|
});
|
||||||
|
|
||||||
export { HotKeys, type IHotKeys };
|
export { HotKeys, type IHotKeys };
|
Loading…
Reference in a new issue