monkeytype icon indicating copy to clipboard operation
monkeytype copied to clipboard

normal key input is falsly rejected by opposite shift mode

Open florian-13 opened this issue 3 months ago • 7 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 open and closed 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?

N/A

Does the issue happen in incognito mode when logged out?

Yes

Account name

FloFlower

Account config

{"theme":"serika_dark","themeLight":"serika","themeDark":"serika_dark","autoSwitchTheme":false,"customTheme":false,"customThemeColors":["#323437","#e2b714","#e2b714","#646669","#2c2e31","#d1d0c5","#ca4754","#7e2a33","#ca4754","#7e2a33"],"favThemes":["serika_dark","vesper_light","paper","onedark","tiramisu","hanok","camping","nord","bliss","mashu","blueberry_light","froyo","rainbow_trail","fleuriste","retro","9009","mizu","terrazzo","vesper","lavender","oblivion","dots","rgb","shoko","leather","taro"],"showKeyTips":true,"smoothCaret":"medium","codeUnindentOnBackspace":false,"quickRestart":"off","punctuation":true,"numbers":true,"words":50,"time":30,"mode":"words","quoteLength":[1],"language":"german_10k","fontSize":2,"freedomMode":false,"difficulty":"expert","blindMode":false,"quickEnd":false,"caretStyle":"default","paceCaretStyle":"default","flipTestColors":true,"layout":"default","funbox":[],"confidenceMode":"off","indicateTypos":"off","compositionDisplay":"replace","timerStyle":"mini","liveSpeedStyle":"off","liveAccStyle":"mini","liveBurstStyle":"off","colorfulMode":false,"randomTheme":"off","timerColor":"main","timerOpacity":"1","stopOnError":"off","deleteOnError":"off","showAllLines":false,"keymapMode":"off","keymapStyle":"staggered","keymapLegendStyle":"lowercase","keymapLayout":"overrideSync","keymapKeys":"minimal","keymapSize":1,"fontFamily":"Roboto_Mono","smoothLineScroll":false,"alwaysShowDecimalPlaces":false,"alwaysShowWordsHistory":true,"singleListCommandLine":"on","capsLockWarning":true,"playSoundOnError":"off","playSoundOnClick":"off","soundVolume":0.5,"startGraphsAtZero":true,"showOutOfFocusWarning":true,"paceCaret":"off","paceCaretCustomSpeed":100,"repeatedPace":true,"accountChart":["on","on","on","on"],"minWpm":"off","minWpmCustomSpeed":100,"highlightMode":"letter","typedEffect":"keep","typingSpeedUnit":"wpm","ads":"result","hideExtraLetters":false,"strictSpace":false,"minAcc":"off","minAccCustom":95,"monkey":false,"repeatQuotes":"off","resultSaving":true,"oppositeShiftMode":"on","customBackground":"","customBackgroundSize":"cover","customBackgroundFilter":[0,1,1,1],"customLayoutfluid":["qwerty","dvorak","colemak"],"customPolyglot":["english","spanish","french","german"],"monkeyPowerLevel":"off","minBurst":"off","minBurstCustomSpeed":100,"burstHeatmap":false,"britishEnglish":false,"lazyMode":false,"showAverage":"off","showPb":false,"tapeMode":"off","tapeMargin":50,"maxLineWidth":0,"playTimeWarning":"off"}

Current Behavior

While typing, i couldn't type the small 'i' key. There was no error, instead the input was simply rejected. when i spammed the key, a notification popped up saying: 'Opposite shift mode is enabled'. Typing the i with either the right or left shift resulted in an error, after which the small i was still rejected.

Unfortunately, i don't know how to reproduce the issue. However, i have had this happen twice before.

Expected Behavior

When typing the small i, it is accepted and i can type the next letter

Steps To Reproduce

unknown

Environment

  • OS: Windows 11
  • Browser: Firefox
  • Browser Version: version 154.0.1

Anything else?

No response

florian-13 avatar Sep 01 '26 14:09 florian-13

I’ll investigate this. The account config shows oppositeShiftMode: "on", and since the i key is being completely rejected rather than just marked incorrect, this may be related to the Opposite Shift Mode keyboard handling.

I’ll try to reproduce it with Opposite Shift Mode enabled/disabled and investigate the keyboard event handling.

VaibhavRawat27 avatar Sep 02 '26 02:09 VaibhavRawat27

I’ll investigate this. The account config shows oppositeShiftMode: "on", and since the i key is being completely rejected rather than just marked incorrect, this may be related to the Opposite Shift Mode keyboard handling.

I’ll try to reproduce it with Opposite Shift Mode enabled/disabled and investigate the keyboard event handling.

I typed more with Opposite shift mode and had it happen 3 or 4 times more. I've found that after typing the key with the wrong shift key, you can then enter it normally again, so perhaps that shift key is presumed to be pressed, and pressing and releasing it resets it. I still don't know how to reproduce it. If it happens again i will test around it more.

florian-13 avatar Sep 02 '26 13:09 florian-13

with Opposite shift mode on, holding right shift and then left shift seems to make right shift being stuck as hold. not all letters are affected when right shift is artificially hold. letters which require left shift such as i and o stop working until i press right shift again.

HelloHumans13 avatar Sep 10 '26 15:09 HelloHumans13

Thanks for the additional information. I tested the reported behavior on the live site with Opposite Shift Mode enabled, including holding one Shift key, pressing the other, and releasing them in different orders.

So far, I haven't been able to reproduce the specific case where a Shift key remains logically stuck after it has been physically released. In my tests, after releasing both Shift keys, normal input such as i works correctly again.

I'll continue investigating the Shift key event/state handling, especially around pressing both Shift keys at the same time, since the intermittent/stuck-state behavior you described still suggests there may be an issue there.

If it happens again, the exact sequence of Shift key presses/releases immediately before it occurs would be very helpful for reproducing it.

VaibhavRawat27 avatar Sep 18 '26 03:09 VaibhavRawat27

@VaibhavRawat27

https://github.com/user-attachments/assets/24c3611a-da49-4139-bf78-e53d27b40dfb

Let me know if you need any additional information.

HelloHumans13 avatar Sep 18 '26 05:09 HelloHumans13

Hi, I noticed that this issue is still marked as open. Is there any update on the status of the linked fix/PR, or is there anything else needed before this issue can be closed?

Thanks for your work on this!

msvicky29 avatar Nov 11 '26 10:11 msvicky29

I've been working on this, but I got caught up with some other tasks unexpectedly. I haven't reviewed the code/PR shared by TharunBabu-05 yet. I'll get back to this and continue working on it as soon as I'm able to. Thanks for following up!

VaibhavRawat27 avatar Nov 11 '26 15:11 VaibhavRawat27