You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@guacamole.apache.org by "jmuehlner (via GitHub)" <gi...@apache.org> on 2023/06/08 21:42:18 UTC
[GitHub] [guacamole-server] jmuehlner opened a new pull request, #448: GUACAMOLE-1113: Support right hand modifiers in terminal.
jmuehlner opened a new pull request, #448:
URL: https://github.com/apache/guacamole-server/pull/448
(no comment)
--
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
[GitHub] [guacamole-server] jmuehlner commented on a diff in pull request #448: GUACAMOLE-1113: Support right hand modifiers in terminal.
Posted by "jmuehlner (via GitHub)" <gi...@apache.org>.
jmuehlner commented on code in PR #448:
URL: https://github.com/apache/guacamole-server/pull/448#discussion_r1223576925
##########
src/terminal/terminal.c:
##########
@@ -1575,13 +1575,13 @@ static int __guac_terminal_send_key(guac_terminal* term, int keysym, int pressed
}
/* Track modifiers */
- if (keysym == 0xFFE3)
+ if (keysym == 0xFFE3 || keysym == 0xFFE4)
term->mod_ctrl = pressed;
- else if (keysym == 0xFFE7)
+ else if (keysym == 0xFFE7 || keysym == 0xFFE8)
term->mod_meta = pressed;
- else if (keysym == 0xFFE9)
+ else if (keysym == 0xFFE9 || keysym == 0xFFEA)
Review Comment:
There's some trickiness associated with right alt and AltGr that I don't fully understand, so I'm marking this as draft for now. This particular keysym `0xFFEA` for right alt is automatically translated to AltGr by the frontend in any case.
--
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
[GitHub] [guacamole-server] jmuehlner commented on a diff in pull request #448: GUACAMOLE-1113: Support right hand modifiers in terminal.
Posted by "jmuehlner (via GitHub)" <gi...@apache.org>.
jmuehlner commented on code in PR #448:
URL: https://github.com/apache/guacamole-server/pull/448#discussion_r1227303064
##########
src/terminal/terminal.c:
##########
@@ -1575,13 +1575,13 @@ static int __guac_terminal_send_key(guac_terminal* term, int keysym, int pressed
}
/* Track modifiers */
- if (keysym == 0xFFE3)
+ if (keysym == 0xFFE3 || keysym == 0xFFE4)
term->mod_ctrl = pressed;
- else if (keysym == 0xFFE7)
+ else if (keysym == 0xFFE7 || keysym == 0xFFE8)
term->mod_meta = pressed;
- else if (keysym == 0xFFE9)
+ else if (keysym == 0xFFE9 || keysym == 0xFFEA)
Review Comment:
Ok, I _think_ after looking at this a bit more, that this should be ok. We might want to un-automatically translate right alt to AltGr on the frontend, but in either case, this change should be safe here.
@mike-jumper If you could confirm that this makes sense that would be cool because I'm not quite as up on all the ins and outs of keyboard layout stuff.
--
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
[GitHub] [guacamole-server] mike-jumper commented on a diff in pull request #448: GUACAMOLE-1113: Support right hand modifiers in terminal.
Posted by "mike-jumper (via GitHub)" <gi...@apache.org>.
mike-jumper commented on code in PR #448:
URL: https://github.com/apache/guacamole-server/pull/448#discussion_r1228365226
##########
src/terminal/terminal.c:
##########
@@ -1575,13 +1575,13 @@ static int __guac_terminal_send_key(guac_terminal* term, int keysym, int pressed
}
/* Track modifiers */
- if (keysym == 0xFFE3)
+ if (keysym == 0xFFE3 || keysym == 0xFFE4)
term->mod_ctrl = pressed;
- else if (keysym == 0xFFE7)
+ else if (keysym == 0xFFE7 || keysym == 0xFFE8)
term->mod_meta = pressed;
- else if (keysym == 0xFFE9)
+ else if (keysym == 0xFFE9 || keysym == 0xFFEA)
Review Comment:
Yep, I agree that:
* It makes sense to handle right alt here, even though the frontend currently assumes the right alt key is always AltGr.
* It makes sense that the frontend should cease assuming the right alt key is AltGr, and instead do so only if the browser agrees that the local keyboard layout defines that key as AltGr (via the details of the key event).
--
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
[GitHub] [guacamole-server] mike-jumper merged pull request #448: GUACAMOLE-1113: Support right hand modifiers in terminal.
Posted by "mike-jumper (via GitHub)" <gi...@apache.org>.
mike-jumper merged PR #448:
URL: https://github.com/apache/guacamole-server/pull/448
--
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