Commit Graph

17 Commits (862a224672514e392e9ce55a9058429f67122ad5)

Author SHA1 Message Date
Ilya Suhodolskiy 56af32dccb
feat: add capture option ()
Ilya Suhodolskiy 791cc61db7
feat: export hotkeys interface ()
Valentin Kruglikov 0dc845bac4
type: Fix index.d.ts deleteScope declaration, fix README deleteScope ()
jaywcjlove e404a0d444 type: update type ().
jaywcjlove 45d4f54dd0 type: fix eslint warnings.
Jessica McElroy 22c39bfae2 [types] fix hotkeys.noConflict() return type
xiejiahe 9334891313 fix: 修复 unbind 解绑所有类型错误
hotkeys.unbind() 抛出异常。
James Chao d3c0d4830b
Allow boolean return value from KeyHandler ()
Sebastian Kreft 08fbd1c948 Change filter to accept a KeyboardEvent ()
`hotkeys.filter` filter `KeyboardEvent`s and as such the signature should reflect so. The change is specially important if one want to override the default filtering strategy.
jaywcjlove 00a8b67c4a type: Modify Hotkeys Option type.
Mason Bourgeois 134075bbee Make 'scope' an optional option ()
The documentation doesn't mention this as a required option, and in use the library works fine passing an options object without `scope`.
jaywcjlove da94c8bae3 Fix the issue of keyup don't exist in typings file.
JounQin f21cfd8272 feat: rename param according to source code
JounQin e32f1e9ed3 feat: add new declaration for unbind handler
jaywcjlove cbccf516b9 Fix: index.d.ts exports custom object.
jaywcjlove 1eef7e18d1 Fix module name issue.
Eager Wei 3f9ff1e957 add Type definitions