javascript - 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.
解决方案
你是这个意思?
document.addEventListener("keydown",function(e) {
if (e.code ==="Tab") console.log(e)
})
推荐阅读
- python - 具有不同单元大小的 Seaborn 热图
- html - 每行弯曲多个可折叠元素
- user-interface - UWP xaml:更改面板创建按钮消失
- python - 如何从循环中中断以停止程序运行
- java - 如何获取谷歌 OIDC 访问令牌和刷新令牌?
- pandas - 循环遍历 Pandas 中的列
- flutter - 通过 FlutterOpenWhatsapp 从另一个应用程序打开 WhatsApp 后,如何以编程方式按下“发送”按钮
- swiftui - 我们如何在 swiftUI 2.0 中解决 onEnd 手势中不需要的偏移
- tfs - 在 Visual Studio 2019 中合并时没有下拉箭头来选择目标分支
- css - 单个菜单项的 CSS 样式