Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jacix opened this issue Mar 27, 2024 · 0 comments · May be fixed by #316
Open

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

jacix opened this issue Mar 27, 2024 · 0 comments · May be fixed by #316

Comments

@jacix
Copy link
Contributor

jacix commented Mar 27, 2024

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.
@jacix jacix linked a pull request Mar 27, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant