-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Reset modifier button's state when connection is completed #10743
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
base: 4.19
Are you sure you want to change the base?
Conversation
@blueorangutan package |
@vishesh92 a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 4.19 #10743 +/- ##
=========================================
Coverage 15.17% 15.17%
- Complexity 11335 11336 +1
=========================================
Files 5415 5415
Lines 474898 474898
Branches 57923 57923
=========================================
+ Hits 72055 72059 +4
+ Misses 394788 394781 -7
- Partials 8055 8058 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 13091 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clgtm
@blueorangutan test keepEnv |
@DaanHoogland a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
[SF] Trillian test result (tid-13184)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM didn't test it
@nvazquez @weizhouapache can you have a look if this is good to go? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - haven't tested it though
Description
This PR fixes #9940
Copilot Generated summary
This pull request introduces functionality to reset the state of modifier keys in the noVNC UI when reconnecting. This ensures that the visual state of the UI and the actual key states are synchronized, improving the user experience.
Enhancements to UI state management:
systemvm/agent/noVNC/app/ui.js
: Added a new methodresetModifierKeysState
to reset the states of modifier keys (Ctrl
,Shift
,Alt
,Windows
) in the UI. This includes updating button styles and sending key-up events if necessary.systemvm/agent/noVNC/app/ui.js
: Integrated theresetModifierKeysState
method into the connection flow by calling it when the connection state changes to "connected."Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
This needs a rebuild of systemvm template or patch the scripts in CPVM to test this patch.
Before the patch, when you enter any text it will appear as if the shift key is pressed even when it's not. Once the CPVM session goes into this buggy state, it's not possible to recover without restarting the VM.
After the patch, the keys works as expected.
How did you try to break this feature and the system with this change?