How can I detect if the Shift key along with a letter is pressed while using lodash's debounce?
fetchDebounced: _.debounce(function(e) {
if (e.keyCode === 16 && e.keyCode >= 46 && e.keyCode <= 90) {
console.log('shift + letter is pressed')
}
}
I am facing issues with this code when using it on the keyup
event. I only want to display a console message if SHIFT+LETTER combination, like Shift+a or Shift+z, is pressed. Is there a solution for this?