Skip to content

Commit

Permalink
fix #114009
Browse files Browse the repository at this point in the history
  • Loading branch information
meganrogge authored Mar 5, 2021
1 parent 48be13a commit f916e9f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/vs/workbench/contrib/terminal/browser/terminalInstance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit f916e9f

Please sign in to comment.