Refresh master with initial release/0.24 snapshot (#332)

* Initial port of release/0.24 source code

* Fix additional headers

* Fix a typo in launch.json
This commit is contained in:
Karl Burtram
2017-12-15 15:38:57 -08:00
committed by GitHub
parent 271b3a0b82
commit 6ad0df0e3e
7118 changed files with 107999 additions and 56466 deletions

View File

@@ -429,10 +429,6 @@ class ScanCodeKeyCodeMapper {
export class MacLinuxKeyboardMapper implements IKeyboardMapper {
/**
* Is the keyboard type ISO (on Mac)
*/
private readonly _isISOKeyboard: boolean;
/**
* Is this the standard US keyboard layout?
*/
@@ -458,8 +454,7 @@ export class MacLinuxKeyboardMapper implements IKeyboardMapper {
*/
private readonly _scanCodeToDispatch: string[] = [];
constructor(isISOKeyboard: boolean, isUSStandard: boolean, rawMappings: IMacLinuxKeyboardMapping, OS: OperatingSystem) {
this._isISOKeyboard = isISOKeyboard;
constructor(isUSStandard: boolean, rawMappings: IMacLinuxKeyboardMapping, OS: OperatingSystem) {
this._isUSStandard = isUSStandard;
this._OS = OS;
this._codeInfo = [];
@@ -1055,21 +1050,6 @@ export class MacLinuxKeyboardMapper implements IKeyboardMapper {
code = ScanCode.Enter;
}
if (this._OS === OperatingSystem.Macintosh && this._isISOKeyboard) {
// See https://github.com/Microsoft/vscode/issues/24153
// On OSX, on ISO keyboards, Chromium swaps the scan codes
// of IntlBackslash and Backquote.
switch (code) {
case ScanCode.IntlBackslash:
code = ScanCode.Backquote;
break;
case ScanCode.Backquote:
code = ScanCode.IntlBackslash;
break;
}
}
const keyCode = keyboardEvent.keyCode;
if (