TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Keypress: A JavaScript input capture library

13 点作者 dmauro超过 12 年前

3 条评论

federicoweber超过 12 年前
Another javascript library to handle keyboard combos is Mousetrap. Compared to the latter I like the way Keypress handle multiple combos declaration, but overall mousetrap seems more robust.<p>Also it's not clear to me how Keypress differentiate (if it does so) among a sequence of keys or a combinations. Mousetrap is using the + notation to handle that so you can declare different bindings for combinations 'command+shift+k' and sequences 'command shift k'.<p><a href="https://github.com/ccampbell/mousetrap" rel="nofollow">https://github.com/ccampbell/mousetrap</a>
评论 #4585472 未加载
Keithamus超过 12 年前
There seems to be a new one of these each week. Here's my attempt from around a year ago: <a href="http://keithcirkel.co.uk/jwerty/" rel="nofollow">http://keithcirkel.co.uk/jwerty/</a>
J0415超过 12 年前
Great work just wanted to say that Print screen button was not working for me. Running Chrome 22.0.1229.79 on Windows 7.
评论 #4585787 未加载