Skip to content

Commit b3fba74

Browse files
committed
Fix cut & copy for iPad
1 parent c6dde2b commit b3fba74

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

src/vs/editor/browser/controller/textAreaHandler.ts

-7
Original file line numberDiff line numberDiff line change
@@ -178,14 +178,7 @@ export class TextAreaHandler extends ViewPart {
178178
mode
179179
};
180180
},
181-
182181
getScreenReaderContent: (currentState: TextAreaState): TextAreaState => {
183-
184-
if (browser.isIPad) {
185-
// Do not place anything in the textarea for the iPad
186-
return TextAreaState.EMPTY;
187-
}
188-
189182
if (this._accessibilitySupport === AccessibilitySupport.Disabled) {
190183
// We know for a fact that a screen reader is not attached
191184
// On OSX, we write the character before the cursor to allow for "long-press" composition

src/vs/editor/test/browser/controller/imeTester.ts

-7
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* Licensed under the MIT License. See License.txt in the project root for license information.
44
*--------------------------------------------------------------------------------------------*/
55

6-
import * as browser from 'vs/base/browser/browser';
76
import { createFastDomNode } from 'vs/base/browser/fastDomNode';
87
import { ITextAreaInputHost, TextAreaInput } from 'vs/editor/browser/controller/textAreaInput';
98
import { ISimpleModel, PagedScreenReaderStrategy, TextAreaState } from 'vs/editor/browser/controller/textAreaState';
@@ -96,12 +95,6 @@ function doCreateTest(description: string, inputStr: string, expectedStr: string
9695
};
9796
},
9897
getScreenReaderContent: (currentState: TextAreaState): TextAreaState => {
99-
100-
if (browser.isIPad) {
101-
// Do not place anything in the textarea for the iPad
102-
return TextAreaState.EMPTY;
103-
}
104-
10598
const selection = new Range(1, 1 + cursorOffset, 1, 1 + cursorOffset + cursorLength);
10699

107100
return PagedScreenReaderStrategy.fromEditorSelection(currentState, model, selection, 10, true);

0 commit comments

Comments
 (0)