提交 97e8bf8c 编写于 作者: R rebornix

Fix #24616. Do not update mouse pointer style when dnd is disabled.

上级 5f628cd7
......@@ -50,6 +50,10 @@ export class DragAndDropController implements editorCommon.IEditorContribution {
}
private onEditorKeyDown(e: IKeyboardEvent): void {
if (!this._editor.getConfiguration().dragAndDrop) {
return;
}
if (this._mouseDown && e[DragAndDropController.TRIGGER_MODIFIER]) {
this._editor.updateOptions({
mouseStyle: 'copy'
......@@ -58,6 +62,10 @@ export class DragAndDropController implements editorCommon.IEditorContribution {
}
private onEditorKeyUp(e: IKeyboardEvent): void {
if (!this._editor.getConfiguration().dragAndDrop) {
return;
}
if (this._mouseDown && e.keyCode === DragAndDropController.TRIGGER_KEY_VALUE) {
this._editor.updateOptions({
mouseStyle: 'default'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册