[ 
https://issues.apache.org/jira/browse/GUACAMOLE-1113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17191188#comment-17191188
 ] 

Mike Jumper commented on GUACAMOLE-1113:
----------------------------------------

For the Right Ctrl key, this is definitely true. We simply are not currently 
handling Right Ctrl.

For the Right Alt key, some care will be needed here. We definitely should not 
handle AltGr as if it were Right Alt. Doing so would cause issues with 
keyboards that rely on AltGr to affect the identities of keys pressed. Handling 
Right Alt as Alt would depend on Guacamole's client side keyboard handling 
being able to differentiate between Right Alt and AltGr. This has historically 
been impossible, and the current keyboard handling is specifically written to 
_always_ consider Right Alt to be AltGr. See the following [ominous commit 
message|https://github.com/apache/guacamole-client/commit/2a30cadb1e8163e6228e03816d452eb4a5b98e06]:

{quote}
GUAC-870: Always interpret Right Alt as AltGr. This seems the only way to allow 
proper international typing across all supported platforms. There's no way to 
detect whether Alt is truly Alt under Mac.
{quote}

This is due to [GUAC-870|https://jira.glyptodon.com/browse/GUAC-870], an issue 
that was addressed in the pre-Apache days of Guacamole. It may be possible to 
handle this differently now if key events have improved on Mac since then. 
Failing that, it may be possible to restrict this AltGr fallback behavior to 
Mac alone, allowing platforms with correct key events to use Right Alt / AltGr.

> Add support for right modifier keys to SSH/Telnet
> -------------------------------------------------
>
>                 Key: GUACAMOLE-1113
>                 URL: https://issues.apache.org/jira/browse/GUACAMOLE-1113
>             Project: Guacamole
>          Issue Type: Bug
>          Components: Terminal
>    Affects Versions: 1.1.0
>            Reporter: George Pittarelli
>            Priority: Trivial
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> In a terminal connection, such as SSH, the Left Control key works however for 
> sending Ctrl+A. However, the Right Control key seems to be entirely lost and 
> pressing RCtrl+A results in just 'a' being sent.
> Testing in a Guacamole SSH connection with `showkeys -a`:
>  - Pressing `a` key results in: `a  97 0141 0x61`
>  - Pressing `LCtrl+a` keys results in: `^A   1 0001 0x01`
>  - Pressing `RCtrl+a` keys results in: `a  97 0141 0x61`
>     - Same as `a` but should be the same as `LCtrl+a`
> The same is true for Alt: the left alt key (Alt, 65513) works but the right 
> alt key (AltGr, 65027) is totally lost.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to