Skip to content

Opposite Shift Detects Wrong Layout #8218

Description

@norwd

Did you clear cache before opening an issue?

  • I have cleared my cache

Is there an existing issue for this?

  • 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?

Yes

Does the issue happen in incognito mode when logged out?

Yes

Account name

norwd

Account config

{"theme":"gruvbox_dark","themeLight":"retro","themeDark":"gruvbox_dark","autoSwitchTheme":true,"customTheme":false,"customThemeColors":["#323437","#e2b714","#e2b714","#646669","#2c2e31","#d1d0c5","#ca4754","#7e2a33","#ca4754","#7e2a33"],"favThemes":["vscode","gruvbox_dark","shadow","gruvbox_light","stealth","dev","drowning","9009","serika_dark","retro"],"showKeyTips":true,"smoothCaret":"fast","codeUnindentOnBackspace":false,"quickRestart":"enter","punctuation":false,"numbers":false,"words":10,"time":30,"mode":"quote","quoteLength":[0,1,2,3],"language":"english","fontSize":2,"freedomMode":false,"difficulty":"normal","blindMode":false,"quickEnd":true,"caretStyle":"default","paceCaretStyle":"default","flipTestColors":true,"layout":"default","funbox":[],"confidenceMode":"off","indicateTypos":"both","compositionDisplay":"replace","timerStyle":"off","liveSpeedStyle":"off","liveAccStyle":"off","liveBurstStyle":"off","colorfulMode":true,"randomTheme":"off","timerColor":"main","timerOpacity":"1","stopOnError":"off","showAllLines":true,"keymapMode":"react","keymapStyle":"staggered","keymapLegendStyle":"dynamic","keymapLayout":"dvorak","keymapKeys":"minimal","keymapSize":1.4,"fontFamily":"Atkinson_Hyperlegible","smoothLineScroll":false,"alwaysShowDecimalPlaces":true,"alwaysShowWordsHistory":true,"singleListCommandLine":"on","capsLockWarning":true,"playSoundOnError":"off","playSoundOnClick":"off","soundVolume":0.5,"startGraphsAtZero":true,"showOutOfFocusWarning":true,"paceCaret":"off","paceCaretCustomSpeed":70,"repeatedPace":false,"accountChart":["on","off","off","on"],"minWpm":"off","minWpmCustomSpeed":60,"highlightMode":"word","typedEffect":"keep","typingSpeedUnit":"wpm","ads":"off","hideExtraLetters":false,"strictSpace":false,"minAcc":"off","minAccCustom":90,"monkey":false,"repeatQuotes":"typing","resultSaving":true,"oppositeShiftMode":"keymap","customBackground":"","customBackgroundSize":"cover","customBackgroundFilter":[0,1,1,1],"customLayoutfluid":["qwerty","dvorak"],"customPolyglot":["git","code_csharp","code_go","code_bash","code_sql","code_javascript_1k"],"monkeyPowerLevel":"off","minBurst":"off","minBurstCustomSpeed":50,"burstHeatmap":true,"britishEnglish":true,"lazyMode":false,"showAverage":"both","showPb":true,"tapeMode":"off","tapeMargin":25,"maxLineWidth":50,"playTimeWarning":"off"}

Current Behavior

When opposite shift is enabled at the same time that the keymap is set to Dvorak (with Dvorak as the layout at the OS level), some keys will be incorrectly identified as being on the same side of the keyboard as the corresponding shift key. So pressing a key with my left hand and holding shift with my right hand will be rejected with the "opposite shift mode is on" message, and the same for some keys on the right side. (This was working yesterday on the same device, same settings.)

Image

Expected Behavior

When using opposite hands to hold shift and press keys, while the opposite shift mode is enabled and the keymap layout is set to Dvorak, this message should not appear and the capitalised letter should be typed.

Steps To Reproduce

  1. Go to monkey-type
  2. Enable Opposite shift (set to "keymap")
  3. Set the keymap layout to Dvorak
  4. Set the OS keyboard layout to Dvorak
  5. Press Shift+R (on a Qwerty keyboard, the location of "R" corresponds to the location of "P" in the Dvorak layout)
  6. Observe that nothing is typed
  7. Repeat step 5 several times rapidly (try spamming capital P (pressing R if you use Qwerty))
  8. Observe error dialog box saying "Opposite shift is enabled"

Environment

  • OS: macOS Tahoe
  • Browser: Safari
  • Browser Version: 26.5 (21642.5.11.4)

Anything else?

I've had a quick look through the latest release and I don't see anything there that touches keymap or opposite shift, although it must be one of those because setting opposite shift to just "on" and not "keymap" still works correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions