Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bring Ctrl keys back #364

Merged
merged 1 commit into from
Jun 27, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Bring Ctrl keys back
  • Loading branch information
rebornix committed Jun 27, 2016
commit 5674f73d5b57a3eba7a437c235dd7c5c56ab740f
4 changes: 4 additions & 0 deletions extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ export function activate(context: vscode.ExtensionContext) {
showCmdLine("", modeHandler);
});

'rfb'.split('').forEach(key=> {
registerCommand(context, `extension.vim_ctrl+${key}`, () => handleKeyEvent(`ctrl+${key}`));
});

context.subscriptions.push(modeHandler);
}

Expand Down
15 changes: 15 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,21 @@
"key": "Backspace",
"command": "extension.vim_backspace",
"when": "editorTextFocus"
},
{
"key": "ctrl+r",
"command": "extension.vim_ctrl+r",
"when": "editorTextFocus"
},
{
"key": "ctrl+f",
"command": "extension.vim_ctrl+f",
"when": "editorTextFocus"
},
{
"key": "ctrl+b",
"command": "extension.vim_ctrl+b",
"when": "editorTextFocus"
}
],
"configuration": {
Expand Down