Bug when switching apps in different desktops pressing cmd+tab in macOS

It seems that BMTP is missing the release of the command key after switching apps that are running in different desktop/spaces after using the shortcut command+tab.

You can use this small project to check this issue:
CMD PRESSED-RELEASED.bmtp (1.7 KB)

The project perform three actions:

  1. after pressing the command key, it shows the log ‘CMD PRESSED’
  2. after releasing the command key, it shows the log ‘CMD RELEASED’ and the notification ‘CMD RELEASED’
  3. after pressing the shortcut command+F12, it shows the log ‘CMD+F12 PRESSED’ and the notification ‘CMD+F12 PRESSED’

Steps to reproduce the issue:

  1. Open any app in desktop 1 (i.e. System Settings)
  2. Open any other app in desktop 2 (i.e. TextEdit)
  3. Go to desktop 2 and activate TextEdit
  4. Use the command+tab shortcut to select the System Settings app
  5. Release the command key
  6. The System Settings app is activated and desktop 2 changes to desktop 1
  7. Now press F12 key alone. Everytime you press the F12 key alone, you will see the notification ‘CMD+F12 PRESSED’. It seems that BMTP is not aware that the command key has been released, and it reacts as the command key is still pressed.
  8. Pressing and releasing the command key stops the issue

The issue occurs with any app change. System Settings and TextEdit are just examples.

Using BMTP 1.9.1 build 1064 and macOS Sonoma 14.7.1

I would appreciate if you could fix this issue as soon as possible. Thanks a lot.

We are looking into it.

Thanks.

I recommend you to set ‘Notification grouping’ to ‘Off’ in System Settings > Notifications > BMTP (It’s the last setting of the list).

This setting makes the new notifications to override the previous notifications, so it’s easier to see when they change.

Hi jordikt, we cannot reproduce this. Is this also happening when you’re not switching desktops?

It’s weird you can’t reproduce it…

I confirm it only happens when switching apps that are in different desktops after pressing the cmd+tab shortcut.

Hi Florian

Any news on this issue? Was you able to reproduce it?

Hi @FlorianBome

Any news on this issue?

Thanks

I’m able to duplicate it on my Mac MINI M4. I’m not sure if it has something to do with the fact that then CMD key is also a part of a combination key to switch applications. It appears that it is only recognized for release if you are in the same workspace.

Also, on my Keyboard for F12, I need to also include function no matter how I set Fn key behavior in Systems setting, so for CMD F12 I have to hit CMD fn and F12.

Steve Caldwell
Bome Customer Care


Also available for paid consulting services: bome@sniz.biz

Thanks for your feedback, Steve.

As I said in previous posts, I confirm that this issue only happens when switching apps that are in different desktops after pressing the cmd+tab shortcut.

Regarding F12, this shortcut is working fine for me. I can set the shortcut like this and the output action is executed as expected (my system settings are configured to always use F1, F2, etc):

OK, we are planning on fixing this in the next Bome MIDI Translator Pro update.

Steve Caldwell
Bome Customer Care


Also available for paid consulting services: bome@sniz.biz
1 Like

Is there any forecast when the next update will be available?

Thanks!

I will ask Florian, but I’ve never seen him pre-announce any releases. Maybe if you want to be part of a Beta he will reach out to you.

Steve Caldwell
Bome Customer Care


Also available for paid consulting services: bome@sniz.biz

Yes, I would accept to be part of the Beta for trying if the command issue is fixed correctly, and any other improvements/fixes.

Thanks! I’ll contact you once a beta version is ready.

1 Like

I would also like to partake in BETA testing if that is okay.

will do!

2 Likes

I have seen the release notes of the last version 1.9.2 and the issue of this post is not in list of bug fixes.

Could you confirm if 1.9.2 has fixed this issue?

Hi,

It appears the issue is that you need to break up your keystrokes. The following translator 0.0 presses CMD down when you send note 0 on MIDI CH1 but only if you have not sent the keystroke already. We use the global variable ga to determine if the keystroke has already been sent.

Translator 0.1 sends the tab key every subsequent note 0 message.

The key here (no pun intended) is to send the CMD up key when you are done (translator 0.2). For this I use MIDI IN note 1. I then set ga back to 0 so the next time you press note 0, the process will repeat. I add a delay to allow keyboard processing to complete on translator 0.1.

I think the issue here is that sending a partial shortcut can cause some issues, so you need to break them up.

testcmd.bmtp (1.3 KB)

I’m not convinced that the behavior of Bome MIDI Translator Pro is really the issue here. It is just the way we need to work around how Mac keyboard processing works.

Of course, you can change the incoming triggers but make sure translator 0.0 and 0.1 have the same incoming trigger.

Sorry for the delay in getting back to you!

Steve Caldwell
Bome Customer Care


Also available for paid consulting services: bome@sniz.biz

Thanks for your reply Steve.

Do you mean that this bug is still not fixed in 1.9.2?

Is it correct?

Well looking back, I can’t verify that it is a bug. I was unable to reproduce it, and actually looking back wasn’t sure how I confirmed it, so I just created something that works. Keystroke handling on the Mac seems very unusual to me as compared to Windows. I’ll continue to explore but I think the most important thing is to make something that meets your needs with our current implementation.

Steve Caldwell
Bome Customer Care


Also available for paid consulting services: bome@sniz.biz