本文整理汇总了TypeScript中vs/platform/keybinding/common/keybinding.KbExpr.not方法的典型用法代码示例。如果您正苦于以下问题:TypeScript KbExpr.not方法的具体用法?TypeScript KbExpr.not怎么用?TypeScript KbExpr.not使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类vs/platform/keybinding/common/keybinding.KbExpr
的用法示例。
在下文中一共展示了KbExpr.not方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: registerClipboardAction
title: desc.label
},
group: `9_cutcopypaste`,
order: weight,
when: desc.kbExpr
});
}
registerClipboardAction({
ctor: ExecCommandCutAction,
id: 'editor.action.clipboardCutAction',
label: nls.localize('actions.clipboard.cutLabel', "Cut"),
execCommand: 'cut',
primary: KeyMod.CtrlCmd | KeyCode.KEY_X,
win: { primary: KeyMod.CtrlCmd | KeyCode.KEY_X, secondary: [KeyMod.Shift | KeyCode.Delete] },
kbExpr: KbExpr.and(KbExpr.has(editorCommon.KEYBINDING_CONTEXT_EDITOR_FOCUS), KbExpr.not(editorCommon.KEYBINDING_CONTEXT_EDITOR_READONLY))
}, 'Cut', 1);
registerClipboardAction({
ctor: ExecCommandCopyAction,
id: 'editor.action.clipboardCopyAction',
label: nls.localize('actions.clipboard.copyLabel', "Copy"),
execCommand: 'copy',
primary: KeyMod.CtrlCmd | KeyCode.KEY_C,
win: { primary: KeyMod.CtrlCmd | KeyCode.KEY_C, secondary: [KeyMod.CtrlCmd | KeyCode.Insert] },
kbExpr: KbExpr.has(editorCommon.KEYBINDING_CONTEXT_EDITOR_FOCUS)
}, 'Copy', 2);
registerClipboardAction({
ctor: ExecCommandPasteAction,
id: 'editor.action.clipboardPasteAction',