You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@guacamole.apache.org by "devrandom (JIRA)" <ji...@apache.org> on 2017/03/05 19:59:32 UTC
[jira] [Commented] (GUACAMOLE-232) Stuck keys iPad/Bluetooth
keyboard (Return/Backspace/Space)
[ https://issues.apache.org/jira/browse/GUACAMOLE-232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15896524#comment-15896524 ]
devrandom commented on GUACAMOLE-232:
-------------------------------------
I tried to debug this by modifying "$scope.$on('guacKeydown', function keydownListener" in
./guacamole/src/main/webapp/app/client/directives/guacClient.js
{code}
var last = Date.now();
// Translate local keydown events to remote keydown events if keyboard is enabled
$scope.$on('guacKeydown', function keydownListener(event, keysym, keyboard) {
if ($scope.client.clientProperties.keyboardEnabled && !event.defaultPrevented) {
now = Date.now();
diff = now-last;
console.log(diff)
if (diff < 55 )
{
console.log("Stuck detected for:");
console.log(keysym);
client.sendKeyEvent(0,keysym);
client.sendKeyEvent(0,32);
client.sendKeyEvent(0,65288);
client.sendKeyEvent(0,65293);
event.preventDefault();
last = Date.now();
return;
}else
{
last = Date.now();
}
client.sendKeyEvent(1, keysym);
event.preventDefault();
}
});
{code}
Stuck key get's detected, but loop continues although I suppress the keydown events by only sending key up events. So I think the loop is created before this function is called. Any ideas how I could investigate this further?
> Stuck keys iPad/Bluetooth keyboard (Return/Backspace/Space)
> -----------------------------------------------------------
>
> Key: GUACAMOLE-232
> URL: https://issues.apache.org/jira/browse/GUACAMOLE-232
> Project: Guacamole
> Issue Type: Bug
> Components: guacamole-client
> Affects Versions: 0.9.10-incubating, 0.9.11-incubating
> Reporter: devrandom
> Attachments: guac_stuck.png
>
>
> I have the same issues as described in:
> https://glyptodon.org/jira/browse/GUAC-661
> Which theoretically was solved in 0.9.7.
> After some typing using iPad with connected bluetooth keyboard, the following Keys may get stuck.
> * return
> * space
> * backspace
> Attached you'll find an example using xev on linux.
> Guacamole produces keyup and keydown events in a loop.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)