KeyCluCask icon indicating copy to clipboard operation
KeyCluCask copied to clipboard

[bug]: App Auto-Switching Bug (Additional Details Included)

Open jhlimdev opened this issue 1 year ago • 25 comments

Description

Hi there! Thank you for making such a great app!

I’m here to report a bug.

  1. Boot or reboot your MacBook. (I have already set the “Launch at Login” feature to ON)
  2. Open Finder and Safari (or any other apps).
  3. On the Finder screen, press the Command key twice and hold to see Keyclu.
  4. Release the Command key and notice that it switches the current app to Safari.
  5. Press the Command key twice and hold again to see Keyclu.
  6. Release the Command key when Keyclu appears and notice that it switches the current app back to Finder.

As a temporary solution, I go to the Keyclu settings and toggle any feature, such as “Silent Launch/quit,” off and then on again.

p.s. If you turn on the stage manager, you can see this bug more properly. And I tried uninstalling it using Homebrew or manually deleting it (when installed from a .dmg file), but it didn’t work.

Expected behavior

When pressing the Command key twice and holding it to bring up Keyclu, the current app should not switch to another app after releasing the Command key. The focus should remain on the current app until the user manually switches to another app.

App version

0.26(22630)

macOS version

macOS Sonoma 14.5

Installation method

Manual (dmg/zip)

Checklist before submitting a bug

jhlimdev avatar Jun 16 '24 05:06 jhlimdev

This happens to me too. If I have Firefox and Lightroom open, opening KeyClu with the hot key in Lightroom and then releasing it will switch to Firefox, then doing the same in Lightroom will switch back to Firefox.

I've also had it try to display the non-existent hotkeys for the hidden loginwindow even though Firefox is showing active menus up in my menubar.

Using cask installed 0.26 on 14.5.

sanitybit avatar Jun 25 '24 10:06 sanitybit

Hey jhlimdev, I've just released a new version. I've made some improvements. Please check and let me know if the issue persists.

Anze avatar Oct 31 '24 23:10 Anze

Thanks for the update! But I encountered an error while updating the app. Would it be okay to delete it and redownload? 스크린샷 2024-11-01 오전 8 55 16

jhlimdev avatar Oct 31 '24 23:10 jhlimdev

Oh, thanks for noticing issue. Simply restart the app, and the update should go through.

Anze avatar Nov 01 '24 00:11 Anze

#82 App auto switching problem still persists. And When I reboot my Mac, keyclu does not open automatically. So I have to manually click the app icon. I love other features you added on this update!

jhlimdev avatar Nov 01 '24 01:11 jhlimdev

Thanks for the report. I'll keep working on the issue.

Anze avatar Nov 01 '24 01:11 Anze

Also getting the app switching issue, unfortunately makes it unusable.

nomasprime avatar Feb 17 '25 01:02 nomasprime

Here to report it affects me as well - it's the only major issue I've run into.

retrobit avatar Feb 19 '25 02:02 retrobit

+1, using option as hotkey for a workaround.

majunze2001 avatar Feb 26 '25 21:02 majunze2001

Just installed Keyclu after I learned that cheatsheet has been discontinued. I'm on version 0.29 and I'm also having this issue. It will switch to the latest app, even if it's on a separate desktop space.

I'm also able to trigger this bug after changing the hotkey to option which apparently avoids the bug, but this doesn't look to be the case.

gee-forr avatar Mar 05 '25 08:03 gee-forr

same here, using the latest version 0.29 (23917) - activating KeyClu by long press cmd and then releasing it, switches the app to another one.

olisba avatar Mar 13 '25 09:03 olisba

Obviously experiencing the same since this appears to be an issue across the board. It's unfortunate, considering how awesome this app is otherwise.

Still amazing of the dev to be providing this free alternative to what is otherwise fairly expensive and out-of-scope software.

nullsubject avatar Apr 10 '25 05:04 nullsubject

I've just updated to the new version, and restarted the app just to double check that everything was running correctly, and I can definitely confirm that the app switching bug still happens all the time. Simply launching keyclu, focusing on a finder window, triggering the keyclu overlay, switching to safari, triggering the keyclu overlay again causes the focus to switch between finder and safari.

Image

I am using the double click ⌘ shortcut, and press and hold.

Image

[edit] Additional info: It seems like the app-switching issue does not happen when the keyclu settings window is open. As soon as the window is closed, the bug starts again.

nullsubject avatar Apr 23 '25 10:04 nullsubject

[edit] Additional info: It seems like the app-switching issue does not happen when the keyclu settings window is open. As soon as the window is closed, the bug starts again.

Ah ha! That's the behavior I'm seeing. It was strange because I had the issue after upgrading to 0.30.1, but then it seemed to mysteriously resolve, but it's back after rebooting today. I'm able to recreate the same result. It ghost cmd-tabs normally, but behaves well when the KeyClu settings window is open.

Liquidmantis avatar Apr 23 '25 14:04 Liquidmantis

Hey nullsubject and Liquidmantis, Thanks for confirming the bug is still present. To help me investigate further, could you please let me know which OS version you're using? Also, if Stage Manager is enabled, could you share its current presets? This info will be really helpful for identifying the issue.

Anze avatar Apr 23 '25 14:04 Anze

Hey nullsubject and Liquidmantis, Thanks for confirming the bug is still present. To help me investigate further, could you please let me know which OS version you're using? Also, if Stage Manager is enabled, could you share its current presets? This info will be really helpful for identifying the issue.

For sure! I can't speak for liquidmantis, but that's certainly why I'm here. So I don't use stage manager, and I'm on 15.3.2.

Image

nullsubject avatar Apr 23 '25 16:04 nullsubject

Hey nullsubject, Can you please try this version if it works better? KeyClu.0.30.1.a.zip

Anze avatar Apr 25 '25 19:04 Anze

Hey nullsubject, Can you please try this version if it works better? KeyClu.0.30.1.a.zip

So far, so good! Obviously I can't guarantee I didn't miss anything, but with .30.1, the issue happens immediately, and consistently, whereas I have yet to experience any window switching with this new version, even when the settings panel is closed.

I believe you very well may have squashed that bug, my friend!

nullsubject avatar Apr 25 '25 20:04 nullsubject

Sorry! Didn't see this notification. I can confirm this build works for me as well. The issue was binary before, it always cmd-tab'ed unless the settings window was active, and with this version I haven't had the issue. Tested with a fresh launch of KeyClu, with the settings window active, and after closing the settings window.

Thanks for the fix!

MacOS: 15.4.1 Stage Manager: off

Liquidmantis avatar Apr 26 '25 16:04 Liquidmantis

Just to provide an additional data point, I confirmed this version fixes the issue on my work computer, too.

Liquidmantis avatar Apr 28 '25 13:04 Liquidmantis

Ah ha! I did find out that it will still do it if you press Enter while the KeyClu window is up. I have Slack configured to use Cmd-Enter to send a message, and occasionally I will dwell with the command key held a split second while reading what I'm about to post. I would hit enter and mysteriously switch focus even while sending the message. It just happened to be a timing thing and I didn't realize KeyClu was popping up.

Liquidmantis avatar Apr 28 '25 21:04 Liquidmantis

Heh, yes, this case is still present in the code. I'll clean it up in the next release soon.

Anze avatar Apr 28 '25 21:04 Anze

Heh, yes, this case is still present in the code. I'll clean it up in the next release soon.

Will there be updates when it's released? This bug is annoying...

stiefgott avatar May 27 '25 19:05 stiefgott

Version 30.1 - thanks for the software! this one is huting me :(

Paddy-Truck avatar Jun 25 '25 15:06 Paddy-Truck

The bug is still there : (

yzllouie520 avatar Jun 26 '25 16:06 yzllouie520