Skip to content
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

Shift does not work properly with some Plasma keyboard settings #17982

Open
FelicitusNeko opened this issue Sep 18, 2024 · 6 comments
Open

Shift does not work properly with some Plasma keyboard settings #17982

FelicitusNeko opened this issue Sep 18, 2024 · 6 comments
Labels
bug Something isn't working input Issues relating to user input in Flash content

Comments

@FelicitusNeko
Copy link

Describe the bug

Several elements in Anti-Idle: The Game require to shift-click to perform certain interactions (sell items in Battle Arena, remove trees in garden, confirmation for destructive actions). However, it seems not to detect Shift pressed state.

Steps to reproduce (one example):

  • Start a game
  • Play long enough to get to the Garden
  • Plant a Free tree in the Garden
  • Shift-click on the Free tree to remove it
  • An error message is displayed that there is already a tree in that plot, and to shift-click to remove it

Expected behavior

In this case, the tree would be removed from the Garden.

Content Location

Anti-Idle v1861.zip

Affected platform

Desktop app

Operating system

Garuda Linux Dr460nized, Wayland/KDE

Browser

No response

Additional information

Tried with latest stable version (2024-08-19) and latest nightly version (2024-09-18) in AUR.

@FelicitusNeko FelicitusNeko added the bug Something isn't working label Sep 18, 2024
@Lord-McSweeney Lord-McSweeney added the input Issues relating to user input in Flash content label Sep 18, 2024
@kjarosh
Copy link
Member

kjarosh commented Sep 19, 2024

Hi @FelicitusNeko! I've tried to reproduce this bug, but on the latest nightly (2024-08-19) it seems that everything works, see the recording below. Are you sure you used the desktop app?

Screencast.from.2024-09-19.08-36-26.webm

BTW On the web version it works too for me

@FelicitusNeko
Copy link
Author

Yes, I'm using the desktop app. I've tried multiple times to shift-click on things, and it doesn't work for me. Ctrl-click works fine. Some elements such as Battle Arena skill +/- buttons and LolMarket buy/sell have you hold Space and click, and that also works. Only shift-click doesn't.

@kjarosh
Copy link
Member

kjarosh commented Sep 19, 2024

Could you run the following SWF and check whether it says Shift when shift is pressed? pressed_keys.zip

Also please verify whether you can input uppercase characters while pressing shift in the following SWF: basic_input.zip

@FelicitusNeko
Copy link
Author

The basic input one does allow to enter capital letters. Also worth noting that any input in Anti-Idle that requires pressing Shift and a key seems to work.

The pressed keys one shows KeyCode 20 when I press Shift. It does not go away when I release Shift. Pressing Ctrl and Alt show Ctrl and Alt, and those do go away when I release them. Any other key seems to work fine.

@kjarosh
Copy link
Member

kjarosh commented Sep 19, 2024

So that gives an important insight to the problem: code 20 means CapsLock. Do you perhaps have Shift remapped to CapsLock? Or any other idea why that might be the case?

@FelicitusNeko
Copy link
Author

FelicitusNeko commented Sep 19, 2024

"Both Shifts together enable Caps Lock; one Shift key disables it" with a checked box
I had enabled this option in Plasma keyboard settings. Turning it off makes the pressed keys tester properly recognise Shift. Trying it in Anti-Idle, it's now correctly allowing me to sell items or remove trees. It's weird that it would recognise one Shift key as Caps Lock, as the rest of the system seems to properly handle it as Shift being held just fine.

Other options in this list that modify the relationship between Shift and Caps Lock also affect how Shift is processed in Ruffle. Only with them all turned off does Shift get processed correctly.

@kjarosh kjarosh changed the title Anti-Idle: Shift-click does not work Shift does not work properly with some Plasma keyboard settings Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working input Issues relating to user input in Flash content
Projects
None yet
Development

No branches or pull requests

3 participants