Merge pull request #1 from bukzor/patch-1

Fix keyboard for macos users
This commit is contained in:
bulldozier 2018-12-19 18:25:31 -08:00 committed by GitHub
commit 16858a5b46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) {