Skip to content

Commit

Permalink
Merge pull request #233 from VSCodeVim/remove-c-c-default
Browse files Browse the repository at this point in the history
Don't use ctrl-c to leave insert mode by default.
  • Loading branch information
johnfn committed May 29, 2016
2 parents be4ca0b + 237fe89 commit 57e07c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/mode/modeNormal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export class NormalMode extends Mode {
}

shouldBeActivated(key : string, currentMode : ModeName) : boolean {
return (key === '<esc>' || key === '<c-[>' || key === '<c-c>' || (key === "v" && currentMode === ModeName.Visual));
return (key === '<esc>' || key === '<c-[>' || (key === "v" && currentMode === ModeName.Visual));
}

async handleActivation(key : string): Promise<void> { ; }
Expand Down
2 changes: 1 addition & 1 deletion test/mode/modeNormal.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ suite("Mode Normal", () => {
teardown(cleanUpWorkspace);

test("can be activated", async () => {
let activationKeys = ['<esc>', '<c-[>', '<c-c>'];
let activationKeys = ['<esc>', '<c-[>'];

for (let key of activationKeys) {
await modeHandler.handleKeyEvent('i');
Expand Down

0 comments on commit 57e07c4

Please sign in to comment.