当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript SimpleKeybinding.isDuplicateModifierCase方法代码示例

本文整理汇总了TypeScript中vs/base/common/keyCodes.SimpleKeybinding.isDuplicateModifierCase方法的典型用法代码示例。如果您正苦于以下问题:TypeScript SimpleKeybinding.isDuplicateModifierCase方法的具体用法?TypeScript SimpleKeybinding.isDuplicateModifierCase怎么用?TypeScript SimpleKeybinding.isDuplicateModifierCase使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在vs/base/common/keyCodes.SimpleKeybinding的用法示例。


在下文中一共展示了SimpleKeybinding.isDuplicateModifierCase方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1: _getUserSettingsLabel

	protected _getUserSettingsLabel(keybinding: SimpleKeybinding): string | null {
		if (keybinding.isDuplicateModifierCase()) {
			return '';
		}
		const result = KeyCodeUtils.toUserSettingsUS(keybinding.keyCode);
		return (result ? result.toLowerCase() : result);
	}
开发者ID:PKRoma,项目名称:vscode,代码行数:7,代码来源:usLayoutResolvedKeybinding.ts

示例2: _getAriaLabelForKeybinding

	private _getAriaLabelForKeybinding(keybinding: SimpleKeybinding): string {
		if (!keybinding) {
			return null;
		}
		if (keybinding.isDuplicateModifierCase()) {
			return '';
		}
		return KeyCodeUtils.toString(keybinding.keyCode);
	}
开发者ID:hungys,项目名称:vscode,代码行数:9,代码来源:usLayoutResolvedKeybinding.ts

示例3: _getUILabelForKeybinding

	private _getUILabelForKeybinding(keybinding: SimpleKeybinding): string {
		if (!keybinding) {
			return null;
		}
		if (keybinding.isDuplicateModifierCase()) {
			return '';
		}
		return this._keyCodeToUILabel(keybinding.keyCode);
	}
开发者ID:hungys,项目名称:vscode,代码行数:9,代码来源:usLayoutResolvedKeybinding.ts

示例4: _getUserSettingsLabelForKeybinding

	private _getUserSettingsLabelForKeybinding(keybinding: SimpleKeybinding): string {
		if (!keybinding) {
			return null;
		}
		if (keybinding.isDuplicateModifierCase()) {
			return '';
		}
		return USER_SETTINGS.fromKeyCode(keybinding.keyCode);
	}
开发者ID:hungys,项目名称:vscode,代码行数:9,代码来源:usLayoutResolvedKeybinding.ts

示例5: _getElectronAcceleratorLabelForKeybinding

	private _getElectronAcceleratorLabelForKeybinding(keybinding: SimpleKeybinding): string {
		if (!keybinding) {
			return null;
		}
		if (keybinding.isDuplicateModifierCase()) {
			return null;
		}
		return this._keyCodeToElectronAccelerator(keybinding.keyCode);
	}
开发者ID:hungys,项目名称:vscode,代码行数:9,代码来源:usLayoutResolvedKeybinding.ts

示例6: _getUserSettingsLabelForKeybinding

	private _getUserSettingsLabelForKeybinding(keybinding: SimpleKeybinding | null): string | null {
		if (!keybinding) {
			return null;
		}
		if (keybinding.isDuplicateModifierCase()) {
			return '';
		}
		return KeyCodeUtils.toUserSettingsUS(keybinding.keyCode);
	}
开发者ID:KTXSoftware,项目名称:KodeStudio,代码行数:9,代码来源:usLayoutResolvedKeybinding.ts

示例7: _getElectronAccelerator

	protected _getElectronAccelerator(keybinding: SimpleKeybinding): string | null {
		if (keybinding.isDuplicateModifierCase()) {
			return null;
		}
		return this._keyCodeToElectronAccelerator(keybinding.keyCode);
	}
开发者ID:PKRoma,项目名称:vscode,代码行数:6,代码来源:usLayoutResolvedKeybinding.ts

示例8: _getAriaLabel

	protected _getAriaLabel(keybinding: SimpleKeybinding): string | null {
		if (keybinding.isDuplicateModifierCase()) {
			return '';
		}
		return KeyCodeUtils.toString(keybinding.keyCode);
	}
开发者ID:PKRoma,项目名称:vscode,代码行数:6,代码来源:usLayoutResolvedKeybinding.ts

示例9: _getLabel

	protected _getLabel(keybinding: SimpleKeybinding): string | null {
		if (keybinding.isDuplicateModifierCase()) {
			return '';
		}
		return this._keyCodeToUILabel(keybinding.keyCode);
	}
开发者ID:PKRoma,项目名称:vscode,代码行数:6,代码来源:usLayoutResolvedKeybinding.ts


注:本文中的vs/base/common/keyCodes.SimpleKeybinding.isDuplicateModifierCase方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。