generated from adams549659584/utools-tmpl
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
> ctrl + insert 跳转添加自选基金 > ctrl + delete 删除选中的自选基金 - 移除删除自选基金界面
- Loading branch information
1 parent
b145491
commit dfa0a09
Showing
9 changed files
with
130 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
declare module '*/mousetrap.min.js' { | ||
namespace Mousetrap { | ||
interface ExtendedKeyboardEvent extends KeyboardEvent { | ||
returnValue: boolean; // IE returnValue | ||
} | ||
|
||
interface MousetrapStatic { | ||
(el?: Element): MousetrapInstance; | ||
new (el?: Element): MousetrapInstance; | ||
addKeycodes(keycodes: { [key: number]: string }): void; | ||
stopCallback: (e: ExtendedKeyboardEvent, element: Element, combo: string) => boolean; | ||
bind(keys: string | string[], callback: (e: ExtendedKeyboardEvent, combo: string) => any, action?: string): MousetrapInstance; | ||
unbind(keys: string | string[], action?: string): MousetrapInstance; | ||
trigger(keys: string, action?: string): MousetrapInstance; | ||
reset(): MousetrapInstance; | ||
|
||
/** https://craig.is/killing/mice#extensions.global */ | ||
bindGlobal(keyArray: string | string[], callback: (e: ExtendedKeyboardEvent, combo: string) => any, action?: string): void; | ||
} | ||
|
||
interface MousetrapInstance { | ||
stopCallback: (e: ExtendedKeyboardEvent, element: Element, combo: string) => boolean; | ||
bind(keys: string | string[], callback: (e: ExtendedKeyboardEvent, combo: string) => any, action?: string): this; | ||
unbind(keys: string | string[], action?: string): this; | ||
trigger(keys: string, action?: string): this; | ||
handleKey(character: string, modifiers: string[], e: ExtendedKeyboardEvent): void; | ||
reset(): this; | ||
} | ||
} | ||
|
||
const Mousetrap: Mousetrap.MousetrapStatic; | ||
|
||
export default Mousetrap; | ||
} |