Add option to disabled keyboard control
Pistil-Studio opened this issue · 4 comments
Hi and thx for your work,
I think to have the possibility to disabled keayboard control will be usefull for some project.
(put a keyStep option to 0 do the job for me)
Thx
I'm trying to think what's the best way would be - I don't know if it's worth it adding enableKeyboard
/enableMouse
etc for all inputs or if your workaround (using 0 step/multiplier) is good enough 🤔
for me, have a enableKeyboard conf would be the best solution.
But it's your time :)
Thanks for a great module:)
Had some issues with forms using virtual-scroll since it was jumping up and down when writing in inputs:) the keyStep: 0 doesnt work for space since it takes window.innerHeight. Ended up doing something like:
e.originalEvent.type === 'keydown' ? 0 : Math.round(e.deltaY * -1)
Any tips on how you would handle inputs whilst keeping the functionality of keydown?
e.originalEvent.type === 'keydown' && checkifinputisfocused ? 0 : Math.round(e.deltaY * -1)
?:)
See 1.4.0 release.