[ https://issues.apache.org/jira/browse/GUACAMOLE-1879?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17783988#comment-17783988 ]
Cristian Consonni commented on GUACAMOLE-1879: ---------------------------------------------- [Mike Jumper|https://issues.apache.org/jira/secure/ViewProfile.jspa?name=mjumper] wrote: {quote} What do you see when you try the same sequence of key presses at https://guacamole.apache.org/pub/tests/key-event-test.html ? {quote} If I press once: {code} keydown e.keyCode=17 e.which=17 e.keyIdentifier=undefined e.key=Control e.altKey=false e.ctrlKey=true e.altGraphKey=undefined e.metaKey=false e.shiftKey=false e.location=1 e.keyLocation=undefined keydown e.keyCode=18 e.which=18 e.keyIdentifier=undefined e.key=AltGraph e.altKey=false e.ctrlKey=false e.altGraphKey=undefined e.metaKey=false e.shiftKey=false e.location=2 e.keyLocation=undefined keyup e.keyCode=17 e.which=17 e.keyIdentifier=undefined e.key=Control e.altKey=false e.ctrlKey=false e.altGraphKey=undefined e.metaKey=false e.shiftKey=false e.location=1 e.keyLocation=undefined keyup e.keyCode=18 e.which=18 e.keyIdentifier=undefined e.key=AltGraph e.altKey=false e.ctrlKey=false e.altGraphKey=undefined e.metaKey=false e.shiftKey=false e.location=2 e.keyLocation=undefined {code} If I keep the button pressed for a few seconds: {code} keydown e.keyCode=17 e.which=17 e.keyIdentifier=undefined e.key=Control e.altKey=false e.ctrlKey=true e.altGraphKey=undefined e.metaKey=false e.shiftKey=false e.location=1 e.keyLocation=undefined keydown e.keyCode=18 e.which=18 e.keyIdentifier=undefined e.key=AltGraph e.altKey=false e.ctrlKey=false e.altGraphKey=undefined e.metaKey=false e.shiftKey=false e.location=2 e.keyLocation=undefined keydown e.keyCode=17 e.which=17 e.keyIdentifier=undefined e.key=Control e.altKey=false e.ctrlKey=false e.altGraphKey=undefined e.metaKey=false e.shiftKey=false e.location=1 e.keyLocation=undefined keydown e.keyCode=18 e.which=18 e.keyIdentifier=undefined e.key=AltGraph e.altKey=false e.ctrlKey=false e.altGraphKey=undefined e.metaKey=false e.shiftKey=false e.location=2 e.keyLocation=undefined keydown e.keyCode=17 e.which=17 e.keyIdentifier=undefined e.key=Control e.altKey=false e.ctrlKey=false e.altGraphKey=undefined e.metaKey=false e.shiftKey=false e.location=1 e.keyLocation=undefined keydown e.keyCode=18 e.which=18 e.keyIdentifier=undefined e.key=AltGraph e.altKey=false e.ctrlKey=false e.altGraphKey=undefined e.metaKey=false e.shiftKey=false e.location=2 e.keyLocation=undefined [repeated lines] keyup e.keyCode=17 e.which=17 e.keyIdentifier=undefined e.key=Control e.altKey=false e.ctrlKey=false e.altGraphKey=undefined e.metaKey=false e.shiftKey=false e.location=1 e.keyLocation=undefined keyup e.keyCode=18 e.which=18 e.keyIdentifier=undefined e.key=AltGraph e.altKey=false e.ctrlKey=false e.altGraphKey=undefined e.metaKey=false e.shiftKey=false e.location=2 e.keyLocation=undefined {code} [Mike Jumper|https://issues.apache.org/jira/secure/ViewProfile.jspa?name=mjumper] wrote: {quote} I suspect this isn't a bug in Guacamole per se, but some attempt by Lenovo or Windows to provide a Ctrl+Alt keypress for applications that might be expecting it (older Windows applications used Ctrl+Alt instead of a dedicated AltGr key). There is nothing within Guacamole's keyboard handling that would result in Guacamole itself interpreting an AltGr press as involving Ctrl unless there is truly an event being dispatched to the browser stating that the Ctrl key has been pressed, let alone something that would be time-dependent. {quote} I did not know about this possibility, but I suspected something similar and I have tried looking in Windows' settings if there was something like "Treat AltGt as Ctrl+Alt" but I did not find any option related to that. Looking further I found this question on StackExchange: ["Can I make Ctrl+Alt NOT act like AltGr on Windows?,"|https://superuser.com/q/592970] and it seems that this is an intended behavior and it is related to the keyboard layout on the host system. So, I think ou are correct in saying this is not a guacamole bug and I guess this report can be closed. Thanks for your help. > AltGr on Italian keyboard mapped to Left Control+AltGr > ------------------------------------------------------ > > Key: GUACAMOLE-1879 > URL: https://issues.apache.org/jira/browse/GUACAMOLE-1879 > Project: Guacamole > Issue Type: Bug > Components: guacamole > Affects Versions: 1.5.3 > Environment: Browser: Version 118.0.5993.118 (Official Build) (64-bit) > OS: WIndows 10 Enterprise > Reporter: Cristian Consonni > Priority: Major > > I can replicate this issue using the tester: > https://guacamole.apache.org/pub/tests/guac/keyboard-test.html > Input method: English (UK) with Italian keyboard. > Tested both on external USB keyboard and built-in laptop (Lenove ThinkPad) > keyboard. > Browser: Version 118.0.5993.118 (Official Build) (64-bit) > OS: WIndows 10 Enterprise > If I press AltGr once I get: > {code} > guacamole keydown 0xffe3 Left control > guacamole keyup 0xffe3 Left control > guacamole keydown 0xfe03 AltGr > guacamole keyup 0xfe03 AltGr > {code} > If I keep it pressed and then released it is even weirder because I get > {code} > guacamole keydown 0xffe3 Left control > guacamole keyup 0xffe3 Left control > guacamole keydown 0xfe03 AltGr > guacamole keydown 0xffe3 Left control > guacamole keyup 0xffe3 Left control > guacamole keyup 0xfe03 AltGr > {code} > This interferes (on a Ubuntu remote server) with using AltGr as the Alternate > characters key, it just does not work. The workaround that I am using at the > moment is that I have changed the "Alternate Characters key" in the keyboard > settings on the server to the "Menu key". -- This message was sent by Atlassian Jira (v8.20.10#820010)