Bug 7259 - local CapsLock/NumLock not updated with Web Access
Summary: local CapsLock/NumLock not updated with Web Access
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Web Access (show other bugs)
Version: 1.3.1
Hardware: PC Unknown
: P2 Normal
Target Milestone: LowPrio
Assignee: Samuel Mannehed
URL:
Keywords:
Depends on:
Blocks: keyboard
  Show dependency treegraph
 
Reported: 2018-10-15 14:16 CEST by Pierre Ossman
Modified: 2025-01-22 09:11 CET (History)
2 users (show)

See Also:
Acceptance Criteria:


Attachments

Description Pierre Ossman cendio 2018-10-15 14:16:44 CEST
Bug 400 implemented synchronisation of CapsLock and NumLock (and ScrollLock) in the native client and in the server. However it did not do any changes to Web Access.

The problem is that the browsers do not expose any way of controlling the local lock state. They also do not expose the current state when needed, so we cannot implement the client-to-server sync the same way as the native viewer.

As such, we are currently relying on the fallback behaviour in the server, which gives a synchronised state even without the client's help in most cases. The most notable case where it doesn't work is when the state is changed on the server but not the client (e.g. a "Toggle CapsLock" function in an application). However it will soon sync back to the clients state when it detects a mismatch.

If the APIs improve then we might be able to fix this, but for now this will have to be a tracking entry.
Comment 2 Adam Halim cendio 2025-01-20 13:04:07 CET
Tested the following after the vendor drop of noVNC (bug 8484):

We used xev to see keyboard events.

4.17.0:
1. Press caps lock inside session
2. Unfocus the browser
3. Press caps lock again
4. Focus the session
5. Press 'ö'
6. Caps is now out of sync, observed that "Shift_L" was used to capitalize. Pressing 'a' now sent a Caps_Lock press/release, and we are back in sync.

4.18.0post:
1. Press caps lock inside session
2. Unfocus the browser
3. Press caps lock again
4. Focus the session
5. Press 'ö' (or any key)
6. We get a Caps_Lock press/release, and we are back in sync.
Comment 3 Adam Halim cendio 2025-01-20 13:27:32 CET
With the noVNC vendor drop, this bug is one step closer to being solved. We need to decide there are more things we can/should do, or if we should settle with the current state and close this bug?
Comment 4 Samuel Mannehed cendio 2025-01-20 23:04:43 CET
Assigning to '---' for discussion.
Comment 5 Adam Halim cendio 2025-01-22 09:01:09 CET
We decided not to close this bug, as the issue that a remote session can't control a local Caps/NumLock persists.
Comment 6 Adam Halim cendio 2025-01-22 09:11:24 CET
I created bug 8498 for the inconsistent lock sync in web access, which has now been fixed after the noVNC vendor drop.

Note You need to log in before you can comment on or make changes to this bug.