首页 > 解决方案 > How can you console.log tab?

问题描述

I would am trying to implement some functionality of the tab key. Is is possible to get it's current value/position or whatever really.

标签: javascriptnode.jsreactjs

解决方案


你是这个意思?

document.addEventListener("keydown",function(e) {
  if (e.code ==="Tab") console.log(e)
})


推荐阅读