monkeytype icon indicating copy to clipboard operation
monkeytype copied to clipboard

CAPS lock notification does not goes away when i have turn off CAPS LOCK

Open love-to-code108 opened this issue 1 year ago • 10 comments

Did you clear cache before opening an issue?

  • [X] I have cleared my cache

Is there an existing issue for this?

  • [X] I have searched the existing issues

Does the issue happen when logged in?

Yes

Does the issue happen when logged out?

Yes

Does the issue happen in incognito mode when logged in?

Yes

Does the issue happen in incognito mode when logged out?

Yes

Account name

biswa_108

Account config

No response

Current Behavior

when you press caps lock the notification for caps lock on is there but when you turn it off the notification stays .

Expected Behavior

When i turn on caps lock the notification should be there and when i turn capslock off the notification should be gone .

Steps To Reproduce

  1. Press caps lock ( to turn caps lock on )
  2. Press Caps lock ( to turn it off )
  3. the notification persists

Environment

  • OS: Ubuntu 22.04
  • Browser: Brave
  • Browser Version : Brave 1.71.118

Anything else?

image After turning on CAPS lock image After turning off CAPS lock

love-to-code108 avatar Oct 27 '24 08:10 love-to-code108

I would like to solve this issue please assign it to me

love-to-code108 avatar Oct 27 '24 08:10 love-to-code108

Oh by the way i have already started working on it .

love-to-code108 avatar Oct 27 '24 08:10 love-to-code108

@love-to-code108 just create a PR if you have a working version.

fehmer avatar Oct 27 '24 11:10 fehmer

@love-to-code108 feel free to attempt this but we've had multiple iterations of this and every time one OS/browser combo fails. As far as i remember there was some limitation in Linux that prevented us from detecting caps lock release until the next keypress (we should really document this somewhere).

Miodec avatar Oct 28 '24 09:10 Miodec

Something else to notice is that the caps-lock detection works differently if the focus is on the test input (#words) or not. So far we couldn't figure out why.

This is my current best attempt if someone is interested https://github.com/fehmer/caps-lock-detection/blob/main/index.html#L14

fehmer avatar Oct 28 '24 09:10 fehmer

@fehmer Thankyou for the reference i am sure it will be very helpful .

@Miodec yes i am using the flatpak version of brave , and there are some issues that keep occurring with this one , like i wasn't able to connect gnome extension with brave by any means ( most likely because this is a flatpak ) , but well i have used monkeytype for more than a year now and it has been a very big part of my typing journey so trust me its and honour to be of any help any way possible .

Oh and i will try to document what happens in this journey .

Thankyou :)

love-to-code108 avatar Oct 28 '24 13:10 love-to-code108

https://github.com/user-attachments/assets/2dd3c4a9-651e-420c-ad5a-b4627df98b3c

I'm encountering a similar issue. When I reload the page with Caps Lock still active, the alert unexpectedly deactivates, which doesn't seem logical.

Is it a same issue or should I open a new issue for it?

OS : Mac OS Browser: Brave

vikasgodara290 avatar Mar 02 '25 10:03 vikasgodara290

Screen.Recording.2025-03-02.at.3.58.21.PM.mov I'm encountering a similar issue. When I reload the page with Caps Lock still active, the alert unexpectedly deactivates, which doesn't seem logical.

Is it a same issue or should I open a new issue for it?

OS : Mac OS Browser: Brave

There is no way for browsers to detect the state of caps lock on page load - it requires a key to be pressed to be able to read its state.

Just a browser limitation.

Miodec avatar Mar 03 '25 10:03 Miodec

i also having that issue that caps lock notification is not hiding when caps lock is off

https://github.com/user-attachments/assets/46fe3e44-12c3-420c-a643-551e74e4228f

abrinCS avatar Mar 04 '25 11:03 abrinCS

I think it is closed or rejected a pull request.

tech-dipesh avatar Jun 15 '25 08:06 tech-dipesh