Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Guacamole keyboard resend invalid characters #174

Open
gbrian opened this issue Jun 1, 2022 · 6 comments
Open

[BUG] Guacamole keyboard resend invalid characters #174

gbrian opened this issue Jun 1, 2022 · 6 comments
Labels
not our bug Bug is inside used dependency / library

Comments

@gbrian
Copy link
Contributor

gbrian commented Jun 1, 2022

Hi,

When writting and astherisk, SHIFT+*, guacamole keyboard gets stuck and starts resend invalid characters.
keyboard_issue_neko

Looks like the issue is here:

key_repeat_interval = window.setInterval(function() {

@m1k1o
Copy link
Owner

m1k1o commented Jun 1, 2022

What keyboard layout do you use on your host and inside neko? Is it everywhere US as shown bottom right in vscode?

@gbrian
Copy link
Contributor Author

gbrian commented Jun 1, 2022

Yes, US
image

@m1k1o
Copy link
Owner

m1k1o commented Jun 1, 2022

There has been updates in guacamole upstream codebase. I upgrade it and see if that fixes the issue.

m1k1o added a commit that referenced this issue Jun 1, 2022
@m1k1o
Copy link
Owner

m1k1o commented Jun 1, 2022

@gbrian can you retest with latest change? Also whole keyboard, if something changed.

@gbrian
Copy link
Contributor Author

gbrian commented Jun 4, 2022

Hi,
Unless did something wrong, I've pulled latest image and tested, same behaviour. Testing some changes on Guacamole.keyboard. I'll keep you posted.

CAUGHT!

image

Basically it happens when you release SHIFT key before the character pressed.
In this case weh want to sent a ":" (Semicolon) that's SHIFT + . (shift + period) on ES keyboard:

  • I press the combination SHIFT + . (shift + period):
    • A SHIFT keydown is sent to server
    • A : (semicolon) keydown is sent to server
  • Then I release SHIFT KEY
    • A SHIFT keyup is sent to server
  • Then I release the "." (period) key
    • A . (period) keydown is sent to server

At this point the server keeps thinking ":" (semicolon) still pressed
Guacamole has a timeout and finally sends a "keyup" for the ":" (semicolon)

@gbrian
Copy link
Contributor Author

gbrian commented Jun 15, 2022

Pushed new changes for a fix (workaround) #178

@m1k1o m1k1o added the bug Something isn't working label Jun 17, 2022
@m1k1o m1k1o added not our bug Bug is inside used dependency / library and removed bug Something isn't working labels Oct 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not our bug Bug is inside used dependency / library
Projects
None yet
Development

No branches or pull requests

2 participants