Capture “shift+tab” keypress event

You can use e.shiftKey to check whether the shift key was held when the event was triggered.

If you add an if statement to your event handler, checking whether the shift key was held, you can perform different actions:

if(keyCode == 9) {
    if(e.shiftKey) {
       //Focus previous input
    }
    else {
       //Focus next input
    }
}

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)