提交 d3ed4fb4 编写于 作者: P Peng Lyu

Support keymaps from all platforms.

上级 216358d6
......@@ -3,6 +3,8 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { IKeyboardLayoutInfo } from 'vs/workbench/services/keybinding/common/keymapService';
function deserializeMapping(serializedMapping: ISerializedMapping) {
let mapping = serializedMapping;
......@@ -63,7 +65,7 @@ interface ISerializedMapping {
export class KeyboardLayoutInfo {
value: IKeyboardMapping;
constructor(public layout: { id: string, lang: string }, public secondaryLayouts: { id: string, lang: string }[], keyboardMapping: ISerializedMapping) {
constructor(public layout: IKeyboardLayoutInfo, public secondaryLayouts: IKeyboardLayoutInfo[], keyboardMapping: ISerializedMapping) {
this.value = deserializeMapping(keyboardMapping);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册