]> git.proxmox.com Git - mirror_novnc.git/commitdiff
Add "macOS shuffle" to iOS as well
authorAlex Tanskanen <aleta@aleta.lkpg.cendio.se>
Mon, 4 Nov 2019 13:22:46 +0000 (14:22 +0100)
committerAlex Tanskanen <aleta@aleta.lkpg.cendio.se>
Mon, 4 Nov 2019 13:22:46 +0000 (14:22 +0100)
Since iOS functions like macOS with regards to Alt behaving like AltGr,
we need the same workaround on iOS as well.

core/input/keyboard.js

index ab62378bf624ff55910b1335e07c48e693a9c4cb..6e41365ec9d41c65f04cbdea0b098d126218919e 100644 (file)
@@ -135,7 +135,7 @@ export default class Keyboard {
         // 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()) {
+        if (browser.isMac() || browser.isIOS()) {
             switch (keysym) {
                 case KeyTable.XK_Super_L:
                     keysym = KeyTable.XK_Alt_L;