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.
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>
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:
- 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.
- 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 ascommand+return
for Mac orctrl+enter
for Windows. - 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.
- 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,
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âŚ
Hi @ken1,
Thank you for your response and for providing the extra details.
Happy to hear everything is working now!
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!
Your feedback helps us improve, and we appreciate it. Take care!
Support Team
Browse all Zeroqode Plugins for Bubble