Skip to content

Stop Ctrl+w from another tab being considered north movement #327

@superjamie

Description

@superjamie

Game version

v. 0.5.3 (alpha)

Browser

Firefox (actually a Firefox fork called Librewolf, but shouldn't matter)

Description

Level 13 has WASD QEZC keyboard shortcuts to move, which is certainly handy when walking around outdoors.

However, if one leaves the game running in tab, then does some other stuff in another tab and closes that tab with Ctrl+w, switching back to Level 13 considers the lingering "w" to be a press north.

This moves the player unexpectedly, which is a bit confusing, and consumes resources which is a bit annoying. I've been right on the limit of Stamina and the unexpected move north has pushed me over the limit, resulting in no way to get back to Camp except to Despair.

I can think of a couple of ways to solve this:

  • Provide an option to turn WASD keyboard navigation on and off.
  • Detect the Ctrl modifier and don't move the player if they are pressing a directional key with Ctrl also pressed. I am not sure if JavaScript allows this.

Thank you for considering this issue report, and thank you for your cool game!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions