Skip to content

🐞 Undo keybind doesn't work reliably if trigger key is still held down #846

@injust

Description

@injust

Bug Description

When I use a Loop keybind and then use the Undo keybind while keeping the trigger key held, the undo doesn't happen reliably.

Steps To Reproduce

Hold down the trigger key and press a keybind to snap the window. Keep holding down the trigger key and press the Undo keybind.

You can also press 2 keybinds to snap the window to 2 different places (I have the preview disabled, so the window snaps even while I'm holding down the trigger key) before pressing the Undo keybind.

Expected Behavior

Undo should work normally, even the trigger key is still held down from the previous keybind.

Actual Behavior

If the Undo keybind is pressed while the trigger key is still held down from a previous keybind, the undo sometimes doesn't happen. The radial menu will update, so Loop is recognizing the keybind, but the window doesn't snap back to the previous position.

Other times, the window will snap back to the incorrect position. This seems to happen when you press several keybinds (all with the trigger key held) before pressing Undo.

Screenshots

No response

macOS Version

Sequoia 15.7.1

Loop Version

Version 1.3.0 (1528)

Additional Context

No response

Final Checks

  • My issue is written in English
  • My issue title is descriptive
  • This is a single bug (multiple bugs should be reported individually)
  • I can help with fixing or developing this issue (tick if you can help).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions