This commit is contained in:
Megan Rogge 2021-03-05 13:10:33 -05:00 committed by GitHub
parent 48be13acf8
commit f916e9f1ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,6 +48,7 @@ import { BrowserFeatures } from 'vs/base/browser/canIUse';
import { IPreferencesService } from 'vs/workbench/services/preferences/common/preferences';
import { IEnvironmentVariableInfo } from 'vs/workbench/contrib/terminal/common/environmentVariable';
import { IProcessDataEvent, IShellLaunchConfig, ITerminalDimensionsOverride, ITerminalLaunchError } from 'vs/platform/terminal/common/terminal';
import { isIPad } from 'vs/base/browser/browser';
// How long in milliseconds should an average frame take to render for a notification to appear
// which suggests the fallback DOM-based renderer
@ -568,6 +569,10 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
this.hasHadInput = true;
}
if (isIPad && event.key === 'c' && standardKeyboardEvent.ctrlKey) {
this.sendText('\u0003', false);
}
// for keyboard events that resolve to commands described
// within commandsToSkipShell, either alert or skip processing by xterm.js
if (resolveResult && resolveResult.commandId && this._skipTerminalCommands.some(k => k === resolveResult.commandId) && !this._configHelper.config.sendKeybindingsToShell) {