v0.5.0
Features
-
forward
keydown
,keyup
events tosvelte:body
<Keydown on:keydown={(e) => { if (e.key === " ") e.preventDefault(); }} on:Space={(e) => { console.log("key", "Space"); }} />
Features
forward keydown
, keyup
events to svelte:body
<Keydown
on:keydown={(e) => {
if (e.key === " ") e.preventDefault();
}}
on:Space={(e) => {
console.log("key", "Space");
}}
/>