mattDavo / Yippy

macOS open source clipboard manager
MIT License
364 stars 26 forks source link

Yippy seems to hijack ⌘ + \ #48

Open paw-lu opened 3 years ago

paw-lu commented 3 years ago

When Yippy is running in the background, pressing \ seems to unfocus the current window. This is a shortcut on other apps, so Yippy seems to hijack it, preventing other programs from using it. Quitting Yippy returns things to normal.

My main shortcut for Yippy is bound to another keyboard combination.

Why is Yippy hijacking this combination? Is it another shortcut? Is there a way to disable or remap it?


Thanks for sharing your work here!

jasonferrier commented 3 years ago

I have the same issue. CMD+\ is and has been my global shortcut for another application for over a decade and Yippy has hijacked it, even when the Yippy window is not displayed.

posguy99 commented 3 years ago

Confirmed. Yippy captures ⌘\ and interferes with 1Password.

posguy99 commented 3 years ago

Yippy binds ⌘ + \ to "Focus Search Bar" on line 88 of Yippy/Sources/Windows/Yippy/YippyViewController.swift.

Yippy's key bindings are not globals, are they? It uses HotKey, which package description implies they're globals. But it shouldn't be capturing hotkeys when its window isn't on-screen. That explains why the currently focused window appears to lose focus, but the currently focused app does not.

fserb commented 2 years ago

Same here. How to disable this?

posguy99 commented 2 years ago

Same here. How to disable this?

Rebuild it, either removing the hotkey link or setting it to something else. I don't really want to install Xcode, so I didn't do either one.

austintraver commented 2 years ago

I'm experiencing this issue as well. @mattDavo would removing this keyboard shortcut from line 88 of /Yippy/Sources/Windows/Yippy/YippyViewController.swift cause problems elsewhere in the app? If not, I'm happy to submit a PR with that line commented out.

austintraver commented 7 months ago

I'm still having this issue 2 years later. The last commit made to this repo was 3 years ago, so I assume this project is no longer being maintained.

If anyone else encounters this issue, my suggestion is to try p0deje/Maccy since it seems to offer a similar set of features, but is still being actively maintained.