Oops, don't forget about Linux users!

This commit is contained in:
johnfn 2016-10-03 12:59:45 -07:00
parent ba5d525817
commit e6b718d1e3
2 changed files with 4 additions and 1 deletions

View File

@ -18,6 +18,7 @@ import { AngleBracketNotation } from './src/notation';
interface VSCodeKeybinding {
key: string;
mac?: string;
linux?: string;
command: string;
when: string;
}
@ -195,6 +196,8 @@ export async function activate(context: vscode.ExtensionContext) {
*/
if (process.platform === "darwin") {
keyToBeBound = keybinding.mac || keybinding.key;
} else if (process.platform === "linux") {
keyToBeBound = keybinding.linux || keybinding.key;
} else {
keyToBeBound = keybinding.key;
}

View File

@ -12,7 +12,7 @@ import { QuoteMatcher } from './../matching/quoteMatcher';
import { TagMatcher } from './../matching/tagMatcher';
import { Tab, TabCommand } from './../cmd_line/commands/tab';
import { Configuration } from './../configuration/configuration';
import { waitForCursorUpdatesToHappen, allowVSCodeToPropagateCursorUpdatesAndReturnThem } from '../util';
import { allowVSCodeToPropagateCursorUpdatesAndReturnThem } from '../util';
import * as vscode from 'vscode';
import * as clipboard from 'copy-paste';