mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-13 11:38:36 -05:00
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:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user