Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (Number(e.key)
- || e.key === '0'
- || e.key === '.'
- || e.key === 'Backspace'
- || e.key === 'ArrowLeft'
- || e.key === 'ArrowRight'
- || (e.getModifierState('Control') && e.key === 'a')
- || (e.getModifierState('Control') && e.key === 'c')
- || (e.getModifierState('Control') && e.key === 'v')){
- } else {
- return false
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement