Merge remote-tracking branch 'origin/master' into automagical-copy-paste

This commit is contained in:
Kent Dozier 2019-01-04 12:17:22 -08:00
commit d1c6c70c40
1 changed files with 0 additions and 21 deletions

View File

@ -133,27 +133,6 @@ export default class Keyboard {
return; return;
} }
// Alt behaves more like AltGraph on macOS, so shuffle the
// keys around a bit to make things more sane for the remote
// server. This method is used by RealVNC and TigerVNC (and
// possibly others).
if (browser.isMac()) {
switch (keysym) {
case KeyTable.XK_Super_L:
keysym = KeyTable.XK_Alt_L;
break;
case KeyTable.XK_Super_R:
keysym = KeyTable.XK_Super_L;
break;
case KeyTable.XK_Alt_L:
keysym = KeyTable.XK_Mode_switch;
break;
case KeyTable.XK_Alt_R:
keysym = KeyTable.XK_ISO_Level3_Shift;
break;
}
}
// Is this key already pressed? If so, then we must use the // Is this key already pressed? If so, then we must use the
// same keysym or we'll confuse the server // same keysym or we'll confuse the server
if (code in this._keyDownList) { if (code in this._keyDownList) {