Custom shortcuts and modules

I have set some custom shortcuts in a module and they work when I'm viewing that module. However, when I put that module into an app, the custom shortcuts no longer seem to work.

Is this a bug or expected behavior? Can't find anything about the intersection of custom shortcuts and modules in the documentation.

Is there a way to set custom shortcuts in an app that reference components/queries in a module? When I try to add custom shortcuts to an app that contains a module, the components/queries of the module don't autocomplete in the custom shortcuts action text field for me.

Hey @jeffbowen!

Happy to help here! I believe this functionality is not currently supported but definitely understand how this UI can be confusing. I'll make sure to fill out a bug report and keep this thread open as a fix is addressed, thanks for flagging!

1 Like

Thanks, Chris. For me, ideally the custom shortcuts set in a module could be inherited wherever the module is included and in the case of conflicting custom shortcuts in the parent, the parent's shortcut would take precedence.

Hey @jeffbowen — definitely agree, this would make the most sense. I've gone ahead and filed a bug report here and will keep this thread up to date as I hear back on this from my team! :)

2 Likes

Hey @Chris-Thompson - I am running into the same issue as described on this thread. Curious if you have any updates on a fix for this behavior.

Hey @Chris-Thompson - same issue here. Any updates?

Hey @Chris-Thompson! Also wondering about this, since it still seems to be an issue.

I'm not sure I understand the point of custom shortcuts in modules if they don't work in the parent apps?

Hi there,

Unfortunately, this bug is still in our queue to be fixed :disappointed: custom shortcuts are not supported for modules

1 Like

Any progress on this issue? Running into the same here.

For anyone like me stuck trying to trigger a specific script on a module in response to a parent app shortcut, I found a somewhat clunky workaround in these docs that helped Build modules to reuse queries and components | Retool Docs

Essentially, you can use a variable in the parent app as an input to the module whose value is the timestamp of the last time the hotkey combination was pressed. In the module, use a JSON SQL query to watch the input with a success handler that runs the script you'd like to fire on success. Any time the timestamp changes, the script runs.

1 Like

Hi @dennis_nimblerx :wave:
Thank you for sharing this workaround on the thread! No updates to share, but I will post here if there's news.

Hey Abbey – any update on this request? Thanks!

Unfortunately, no updates as of now. This is still in our backlog.

Any update on this?

Hey @jamesg31 - the last time this came up, our inclination was to clean up the confusing UX by simply disabling the Custom shortcuts menu within the module IDE. We'll hopefully be revisiting modules in the near future, though, so might draw a different conclusion then.