p0deje / Maccy

Lightweight clipboard manager for macOS
https://maccy.app
MIT License
12.93k stars 545 forks source link

Cursor overlapping Popup causes unexpected item to be pasted when pressing "Return" key #922

Open bennygoldman opened 1 month ago

bennygoldman commented 1 month ago

Before Submitting Your Bug Report

Maccy Version (see 'About' window)

Version 2.0.1 (48)

macOS Version

15.0 (24A335)

Maccy Settings

{
    "KeyboardShortcuts_delete" = "{\\"carbonModifiers\\":2048,\\"carbonKeyCode\\":51}";
    "KeyboardShortcuts_pin" = "{\\"carbonModifiers\\":2048,\\"carbonKeyCode\\":35}";
    "KeyboardShortcuts_popup" = "{\\"carbonModifiers\\":6912,\\"carbonKeyCode\\":9}";
    "LaunchAtLogin__hasMigrated" = 1;
    "NSStatusItem Preferred Position Item-0" = 523;
    "NSStatusItem Visible Item-1" = 0;
    "NSWindow Frame SUUpdateAlert" = "650 492 620 398 0 0 1920 1055 ";
    "NSWindow Frame com.sindresorhus.Settings.FrameAutosaveName" = "661 393 510 473 0 0 1440 875 ";
    SUAutomaticallyUpdate = 1;
    SUEnableAutomaticChecks = 1;
    SUHasLaunchedBefore = 1;
    SULastCheckTime = "2024-10-09 18:36:34 +0000";
    SUUpdateGroupIdentifier = 3088515445;
    clearOnQuit = 1;
    enabledPasteboardTypes =     (
        "public.html",
        "public.rtf",
        "public.png",
        "public.tiff",
        "public.utf8-plain-text"
    );
    ignoredPasteboardTypes =     (
        "Pasteboard generator type",
        "com.agilebits.onepassword",
        "de.petermaurer.TransientPasteboardType",
        "com.typeit4me.clipping",
        "net.antelle.keeweb"
    );
    menuIcon = scissors;
    migrations =     {
        "2024-07-01-version-2" = 1;
    };
    pasteByDefault = 1;
    popupPosition = center;
    popupScreen = 0;
    previewDelay = 1000;
    removeFormattingByDefault = 1;
    searchMode = fuzzy;
    showFooter = 1;
    showSearch = 0;
    showSpecialSymbols = 1;
    showTitle = 0;
    sortBy = firstCopiedAt;
    windowSize = "[450,800]";
}

Description

If I don't move my mouse to the edge of the screen {before} or {between} bringing up the clipboard and pressing Return, Maccy will paste something much further down the list.

Notes:

If there's a setting to ignore the cursor, I'd happily turn it on!

Thank you

Steps to Reproduce

  1. Copy {{some text}}
  2. Press hot key to open Maccy popup without regard to cursor position
  3. Press Return
  4. Expected:
    • The last item copied would be pasted
  5. Observed:
    • If cursor is overlapping a different item, that item is pasted instead
p0deje commented 1 month ago

Please record a video demonstrating the problem, I cannot reproduce it using your steps.