Home > Back-end >  Prevent div from highlighting on key press
Prevent div from highlighting on key press

Time:10-08

I've add a keydown event handler to some divs, allowing the user to shift them through a list using arrow keys.

On pressing an arrow key, the div's border changes to a blue colour. enter image description here

How do I prevent this?

CodePudding user response:

Set in css outline:none; for input

  • Related