-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Many keyboard shortcuts stopped working after upgrading to 3.25.0 #562
Comments
Hey @jason-wihardja Mind sharing which key combinations stopped working? |
Would it be useful if I upload my entire config file? Using this config, even the close tab action within default group stopped working |
Thanks @jason-wihardja, I'm working on some of the reported issues now. |
I am using a macropad to support my productivity, so you may find some weird or unusual key combinations, but those are the keys I assigned to my macropad. Normally, my keystroke pipeline looks something like this:
Is there any change to the way you capture keystrokes? For example, instead of capturing the F15/F17 that the driver sends, the software unintentionally captures A/B. |
@jason-wihardja Interesting, so it is all the I did some problems with the migration code (moving the config), that was my first guess that something went wrong there. Did manage to fix another bug, so that is good. Just need to figure out how I can emulate these keystrokes as I don't have a keyboard with those function keys. Doing some additional research around it now. |
@jason-wihardja we just released version https://github.com/zenangst/KeyboardCowboy/releases/tag/3.25.1 |
Sadly it still doesn't work. For example, in Spotify (using the previously provided config), hitting Home/End would result in increase/decrease volume. On my machine, it behaves like how the Home/End button normally work (go to the top/bottom of the view) |
@jason-wihardja would you mind compiling a list of shortcuts that don't work so that I can write some tests for those specific combinations. Also, one thing worth trying is to try and re-record the shortcuts, just to verify that there isn't a mismatch between old and new configuration and key mapping and lookup. |
I have also tried re-recording the shortcuts, and it didn't work. There is no difference between the old shortcut and the newly recorded one. The config looks the same. |
While testing for the above keys, I also have Karabiner Event Viewer on all the time. I can verify that there's no difference in the signals being sent from my device and for buttons available in my keyboard (not my macropad), like Is there anything significant you change the way this app capture keys? Because version 3.24.2 works flawlessly while version 3.25.0 and 3.25.1 don't. As I apparently rely a lot more on the buttons that don't work than the buttons that work for my daily workflow, I have no other option than to downgrade to 3.24.2 for now. |
@jason-wihardja |
@jason-wihardja just a minor follow-up, so that I'm not chasing a red herring. Would you mind enabling notifications for running workflows in the application preferences, just to verify if this is related to the keyboard shortcut trigger or the command that should forward keys to the system? |
@jason-wihardja Hey Jason, I've got some good news! I finally figured out why Home & End didn't map properly. I have a fix for that. But I still can't seem to reproduce the issue where you use Can you send me the flags that are sent when you press those keys? I'm not sure what Karabiner Event Viewer outputs, but I'm looking for the raw value for the I use Key Codes (https://manytricks.com/keycodes/) to look them up. Here's what I get when it's working for me. |
@jason-wihardja here's an early release for you to try out! |
I tried this option, but no notifications appeared, even for the working ones |
Here are the keycodes for every key combination I listed on the table above (the last one is F20, the Key Codes app fails to display the character/key) Using v3.52.2, I can confirm that Home/End now works. But other non-working keys are still not working. |
Hey @jason-wihardja, I'm still trying to figure this out. If you don't mind, I'd like to test your configuration in the test suite so I can use it for future regression testing. Is that okay with you? I tried to match By the way, what are you using Table Overview
|
@jason-wihardja I just tried your configuration locally, and the |
Sure, you may use the config. I'm currently away for a business trip, so I don't have my macropad with me right now. Will test again the key combination once I get back home. And yes, seems like I included For context, my karabiner captured different key combinations than the one being mapped in Keyboard Cowboy, in particular the ones that work globally regardless of app. I mainly use Keyboard Cowboy for key combinations that have different actions depending on apps, which is something Karabiner can't really do easily. This has never triggered any conflict before. |
@jason-wihardja could you let me know when you have time to re-test the latest version? |
Ok, so I've gotten back from the trip. I noticed that you've released v3.25.3. Let me re-test them. And what do you mean by |
So, after I test some more, it seems that for me, the behavior is the same as before. It's still not working. Using |
I don't know whether this has something to do with the issue or not, but apparently when I ticked the |
What I meant was, if you compare F13 or F16 with F20, you'll notice that the flags for F1-F19 are different. Here's the flags for F1-F19:
Now, let's look at your F20:
I made an assumption that all F-keys should use the function key mask. However, I believe this assumption was incorrect. The keys from F1 to F19 should have the function key mask, while the remaining keys should use the non-coalesced flag. |
This is likely related (my bindings also broke with 3.25.0, I only got around to trying to report now). For example, I use cmd-shift-k to open iterm with kalker.
The difference is that the caps lock cmd variant is reported as RCMD (right side cmd) rather than LCMD (left side cmd). Looks like you internally treat the two as equivalent (despite their different codes), as per ShortcutResolverTests.swift One approach you could take is instead of checking directly for RCMD or LCMD, instead checking for |
Thanks a bunch for your response, @CosmicToast! I'm curious, are you using third-party software to remap your caps lock key to command, or did you do that through System Settings? I'm wondering why it ends up as the right command key, maybe that's by design. While trying to figure this out, I found a small issue with how keyboard shortcuts are registered in Keyboard Cowboy. It doesn't check if each key is in the correct left or right position. I think this might be part of the problem we're seeing here. So, if you hold down left-shift + right command, it will be registered as right-shift & right command. Only one of the keys have to be on the right side for all of them to be registered as such. |
@CosmicToast @jason-wihardja found a minor issue in the previous version that I shared (so I deleted that comment). Here is a freshly brewed version. |
Using the latest version you uploaded, this is the config that has everything working (with some buttons like Using this new config, the functionality is equivalent to what I was achieving with version 3.24.2 and the config I attached previously here. |
@jason-wihardja here is a new version for test 🤞 |
@jason-wihardja I just released 3.25.4, because it included additional other fixes that I wanted to get out there, let me know how it goes. |
Ok, now all the function buttons are working from F13 to F20, now being recorded without the
|
Just here to confirm that my issues (post re-record) are resolved with 3.25.4. |
@CosmicToast Thanks for following up. |
From my side, found Cmd+Opt+Shift+ not working with P.S.: Confirming that the new version is keyboard language agnostic. |
Hi @ww7, can you please share more details about the shortcuts that aren't working? I recently created a keyboard trigger with Have you tried re-recording the shortcut? If you're comfortable sharing, a screenshot (or a copy of your config) of the workflow in question would be super helpful in debugging. Thanks so much for reaching out about the language-agnostic part! I'm glad you liked it. 😊 It's one of those happy accidents that I didn't even set out to fix that specifically. Haha! 🤓 |
I'm very sorry, missed |
Hey @ww7, that's an interesting find! Unfortunately, it seems like they're already captured by the system before they reach Keyboard Cowboy. I did some digging and it looks like the
https://discussions.apple.com/thread/254787050?sortBy=rank
I tried closing Keyboard Cowboy & Karbiner-Elements to see if any other apps were interfering, but I still get the same result. It seems like the Key Codes are trying to capture the event, but it's not working. |
Okay! With Karbiner-Elements diagnostic shortcuts
and
and seems it can be used via KE, but does not arriving to the KC! So it's not an issue of Keyboard Cowboy at all. |
Aw interesting. So you are just disabling them? |
Weirdly, in version 3.24.2, those combinations work just fine, whereas in 3.25.x, it fails to detect the shortcut |
@jason-wihardja which shortcuts are you referring to? |
I'm referring to the shortcuts that includes all 4 modifiers: ctrl+alt+cmd+shift |
@jason-wihardja well the system bound periods and commas never worked. still trying to figure out why I have zero issues with all for modifiers and the arrow keys. The commands that are inside the workflows, are those also keyboard commands, if so, have you tried re-recording them? |
I haven't. But assuming that I have never re-record anything inside any workflows during the testing so far, only reassigning buttons that triggers the workflow and managed to get things working when the broken workflow gets reassigned to a different trigger, then the problem must be in the recorder part, isn't it? |
Well there could be some incompatible combinations because they both use the same functionality for recording. Recording, indexing and resolving has been refactored, so all of the parts have been under the loop and changed in some way. |
@jason-wihardja Thanks a bunch, Jason! I'll give the Mac Mouse Fix a try with those instructions. I'll let you know what it says. I'll also check out the 'Insert' key and why that is causing issues. I got some other bugs fixed today that were bugging me, but life got in the way and I couldn't look into this one more. I might be able to give it a shot later this week though. Thanks again for being so patient! ❤️ |
@jason-wihardja, I've got some great news! I managed to reproduce the Mac Mouse Fix issue and figured out how to fix it. Can you try this version and see if it works for you? Keyboard Cowboy 3.25.6.dmg.zip The reason it failed was that Mac Mouse Fix added some extra flags to the event, while Keyboard Cowboy looks for an exact match. To fix this, I added a fallback that checks all the known flags, subtracts those from the original flags, and uses the remainder for lookup. That should be enough to make it a perfect match if any other app decides to also decorate their events. I haven't had a chance to look into the |
Sorry for the very late reply, got a really busy week. I can confirm that the shortcut now works. Seems like my macropad recorder also added some extra flags, similar to what Mac Mouse Fix produces. But the new version handles it well. So, I guess what's left is the |
@jason-wihardja what is the key code and modifiers for |
It was previously included in the config I uploaded here. One example of the shortcut utilizing this button is Shuffle shortcut under Spotify app group. But I guess that was recorded before the tweaks that you did with the |
@jason-wihardja I think it's a good idea to record the keyboard shortcut again using the latest version of the code. That way, we don't accidentally patch a permutation that might have been recorded with an outdated implementation. Just to double-check! |
@jason-wihardja I see that your Shuffle command has been stored as "trigger" : {
"keyboardShortcuts" : {
"passthrough" : false,
"shortcuts" : [
{
"id" : "F9D4162A-BADF-47D4-A63B-6A6F17855323",
"key" : "?⃝",
"modifiers" : [
"fn"
]
}
]
}
} Would you mind sharing the key code for |
Here is the keycode Weirdly, macos recognizes the key as |
@jason-wihardja, could you please expand on the modifiers? I'd love to get a better idea of which ones to attach. Thanks a bunch! |
I have multiple keyboard shortcuts set for multiple apps. None of them are working after updating to 3.25.0.
A few things about my setup that might be useful for tracing issues:
Previously this setup worked fine. I can confirm this, because downgrading to 3.24.2 makes everything work again.
The text was updated successfully, but these errors were encountered: