提交 056fc8e4 编写于 作者: A Alexandru Dima 提交者: GitHub

Merge pull request #21023 from Microsoft/alex/kblayout

native-keymap@0.4.0
......@@ -19,6 +19,8 @@ addons:
- g++-4.9-multilib
- zip
- libgtk2.0-0
- libx11-dev
- libxkbfile-dev
before_install:
- git submodule update --init --recursive
......
......@@ -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.
先完成此消息的编辑!
想要评论请 注册