Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function handleKeydown(e) {
- if (e.shiftKey) {
- if (e.which !== 9) {
- e.preventDefault()
- }
- }
- if (e.which > 57) {
- e.preventDefault()
- }
- if (e.which === 32) {
- e.preventDefault()
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement