Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript check if key is keydown is charcter

document.addEventListener('keypress', (event) => {
    if(event.key && event.key != 'Enter'){
      console.log('this is a character')
    }
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #check #key #keydown #charcter
ADD COMMENT
Topic
Name
7+5 =