Skip to content

ClipboardTool uses deprecated hs.mouse.getAbsolutePosition; right-click menu has errors #315

@jacix

Description

@jacix

I noticed a few minor ClipboardTool bugs when right-clicking an item in the clipboard list. I've fixed these so I'll fork and raise a PR.

  1. The console to show a deprecation warning for using hs.mouse.getAbsolutePosition instead of hs.mouse.absolutePosition.

  2. Selecting one of the special paste actions throws an error about a type mismatch. "entry" should be "entry.content".

ERROR:   LuaSkin: hs.menubar:setClickCallback() callback error: ...hammerspoon/Spoons/ClipboardTool.spoon/init.lua:241: attempt to concatenate a table value (local 'entry')
  1. Using the special paste actions writes the output into ClipboardTool's filter box rather than prevFocusedWindow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions