Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
你怎么能在javascript中做到这一点:按下Ctrl按钮但返回Alt+Shift向下。我这样做是因为 Firefox 访问密钥是Alt+Shift它太难了。我想将Alt+绑定Shift 到作为关键的单个按钮Ctrl。
尝试像这样使用 smth
document.onkeydown = function (e) { e = e || event; if (e.ctrlKey) { //do action } }