[Bug]: Pointer gets stuck showing depending on which keys are pressed

Open Beginner friendly
#5,722 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
70/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
java
Domain
desktop

Research direction

Search the Java codebase for key event handling related to the pointer tool and Space key. The bug likely involves modifier key state not being cleared when Space is released. Look for input listeners or keyboard handlers that control pointer visibility. Verify the fix by reproducing the steps: press Space, then Alt, release Space, and confirm the pointer hides.

Written by the indexing model from the issue text.

Description

bug
Describe the Bug

When pressing Space, a pointer is shown on screen to all players, and it hides again when Space is released. But if modifier key such as Alt is pressed before releasing Space, then the pointer stays showing on screen.

To Reproduce
  1. Open a campaign and select the pointer tool.
  2. With the mouse over the map, press and hold Space. The blue arrow pointer should show on screen.
  3. While continuing to press Space, also press and hold Alt.
  4. Release Space while continuing to press Alt. The pointer will remain on screen.
  5. Release Alt. The pointer will remain on screen.
  6. Press and release Space. The pointer will now hide.
Expected Behaviour

The pointer should only show as long as the space key is held.

Screenshots

No response

MapTool Info

1.17.1

Desktop

Linux Mint 22.1

Additional Context

No response

Dominant language
Java
Stars
927
Forks
286
Avg merge
3d 17h
Merged PRs (30d)
94

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from RPTools/maptool

All issues in RPTools/maptool

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.