mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-04-21 09:01:53 +02:00
1 line
305 B
JavaScript
1 line
305 B
JavaScript
import{useRef as t}from"react";import{useWindowEvent as a}from'./use-window-event.js';var s=(r=>(r[r.Forwards=0]="Forwards",r[r.Backwards=1]="Backwards",r))(s||{});function n(){let e=t(0);return a("keydown",o=>{o.key==="Tab"&&(e.current=o.shiftKey?1:0)},!0),e}export{s as Direction,n as useTabDirection};
|