You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@guacamole.apache.org by GitBox <gi...@apache.org> on 2021/07/27 18:56:50 UTC

[GitHub] [guacamole-client] mike-jumper commented on a change in pull request #630: GUACAMOLE-1386: Correct definitions of "Meta" and "Super" keys.

mike-jumper commented on a change in pull request #630:
URL: https://github.com/apache/guacamole-client/pull/630#discussion_r677717866



##########
File path: guacamole-common-js/src/main/webapp/modules/Keyboard.js
##########
@@ -583,7 +583,7 @@ Guacamole.Keyboard = function Keyboard(element) {
         "UIKeyInputUpArrow": [0xFF52],
         "Up": [0xFF52],
         "Undo": [0xFF65],
-        "Win": [0xFFEB],
+        "Win": [0xFFE7, 0xFFE7, 0xFFE8],

Review comment:
       Yep - it's due to the way key location is handled by JavaScript keyboard events and for compatibility. If a key has left/right variations, like Left Shift vs. Right Shift, then JavaScript may represent that with a key location value where `1` indicates left , `2` indicates right, and `3` indicates the numpad:
   
   https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#keyboard_locations
   
   `0` is used for keys that do not vary by location or if the location is unknown, thus listing `0xFFE7` twice here is effectively a fallback.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@guacamole.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org