提交 33c592a9 编写于 作者: A Alex Dima

native-keymap@0.4.0

上级 fccd652a
......@@ -288,9 +288,9 @@
"resolved": "https://registry.npmjs.org/nan/-/nan-2.4.0.tgz"
},
"native-keymap": {
"version": "0.3.0",
"from": "native-keymap@0.3.0",
"resolved": "https://registry.npmjs.org/native-keymap/-/native-keymap-0.3.0.tgz"
"version": "0.4.0",
"from": "native-keymap@0.4.0",
"resolved": "https://registry.npmjs.org/native-keymap/-/native-keymap-0.4.0.tgz"
},
"normalize-path": {
"version": "2.0.1",
......
......@@ -15,4 +15,24 @@ declare module 'native-keymap' {
export function getKeyMap(): INativeKeyMap[];
export interface IWindowsKeyboardLayoutInfo {
name: string;
id: string;
text: string;
}
export interface ILinuxKeyboardLayoutInfo {
model: string;
layout: string;
variant: string;
options: string;
rules: string;
}
export interface IMacKeyboardLayoutInfo {
id: string;
lang: string;
}
export function getCurrentKeyboardLayout(): IWindowsKeyboardLayoutInfo | ILinuxKeyboardLayoutInfo | IMacKeyboardLayoutInfo;
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册