提交 fb86198a 编写于 作者: A Alex Dima

Fixes #18331: Bind default Toggle Word Wrap keybinding also in the global context

上级 fe11ae5f
......@@ -6,7 +6,7 @@
import * as nls from 'vs/nls';
import { KeyCode, KeyMod } from 'vs/base/common/keyCodes';
import { ICommonCodeEditor, EditorContextKeys } from 'vs/editor/common/editorCommon';
import { ICommonCodeEditor } from 'vs/editor/common/editorCommon';
import { editorAction, ServicesAccessor, EditorAction } from 'vs/editor/common/editorCommonExtensions';
import { IConfigurationEditingService, ConfigurationTarget } from 'vs/workbench/services/configuration/common/configurationEditing';
import { IMessageService, Severity } from 'vs/platform/message/common/message';
......@@ -21,7 +21,7 @@ class ToggleWordWrapAction extends EditorAction {
alias: 'View: Toggle Word Wrap',
precondition: null,
kbOpts: {
kbExpr: EditorContextKeys.TextFocus,
kbExpr: null,
primary: KeyMod.Alt | KeyCode.KEY_Z
}
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册