[Free Plugin] Air Keyboard Shortcut

In this example, it seems that the same issue is still occurring. I am trying to implement something very similar into my app and and it is doing they same thing. @seanhoots @fayewatson are there any other workarounds?

I’ve created a form but I am not able to assign “tab” shortcut to a button it goes only to input fields. I there any way to assign tab shortcut to a button?

Thanks for this plugin!
I have trouble identifying open keys, is there a list somewhere?
Because if I use keys used by Chrome on my mac, say cmd+S, my shortcut with the plugin works, but Chrome then also wants to save the page and its native shortcut remains active.
Isn’t there a way to override this on a specific page?

Hi @GammaMat

Apologies for the late reply. :pray:

You can try the following approach using JavaScript to capture specific key presses and prevent their default browser behavior.

<script>
  document.addEventListener('keydown', function(event) {
    // Prevent default browser shortcuts
    if (event.ctrlKey || event.metaKey) {
      switch (String.fromCharCode(event.which).toLowerCase()) {
        case 's':
          // Prevent Save (Ctrl+S / Cmd+S)
          event.preventDefault();
          break;
        // Add other cases as needed
      }
    }
  });
</script>

Summary

Hope this helps!

Best regards,
Zeroqode Support Team

I’m using lots of key shortcuts in my app and love AirKeyboard Shortcut.

Unfortunately, I cannot seem to get cmd+return to trigger a custom workflow, or anything else. I also tried it as command+return and mod+return.

Any ideas?

Hi @ken1 ,

Thank you for reaching out and sorry for the delayed reply over the weekend.

It looks like you’ve set up the mod+Return shortcut, but there are a few things to check to make sure it’s working properly, here are some general advices:

  1. Global Setting: If you’re trying to make the shortcut work across the entire app, make sure the “Allow globally” box is checked in the plugin settings. This will ensure that your keyboard shortcut works in all elements, not just in specific ones.
  2. Key Combination: Ensure that mod+Return is a valid key combination across all browsers. Sometimes browsers may override certain shortcuts. You could also try alternatives such as command+return for Mac or ctrl+enter for Windows.
  3. Workflow Setup: In the workflow, check if the event is being triggered correctly by adding the appropriate condition under the “Only When” option. This ensures that the event is fired as expected. Try in Step-by-Step mode to inspect whether the condition value is true or false.
  4. Testing: Try testing the shortcut with different key combinations. It might also help to test your app in different browsers (Chrome, Firefox, Safari) to ensure no browser-specific issues are causing the problem.

Also, check the browser console for any errors while the shortcut is being triggered.

Let us know if this helps.
Best regards,

Browse all Zeroqode Plugins for Bubble
Banner_Last3

Thanks for the feedback. I have many shortcuts already working so this one was unusual. But I figured it out.

I used:

mod+Return

and I needed to use:

mod+return

The capitalization was the mistake. I didn’t catch that or even realize it would cause the problem.

Now I know…

1 Like

Hi @ken1,
Thank you for your response and for providing the extra details.

Happy to hear everything is working now! :relieved:

If you’re satisfied with our plugin, feel free to rate it in the Plugins tab of the Bubble editor. Just search for the plugin by name and give it as many stars as you think it deserves! :slightly_smiling_face:

Your feedback helps us improve, and we appreciate it. Take care!

Support Team
Browse all Zeroqode Plugins for Bubble
Banner_Last3