cake file.
Fix bug with passing a non-function to #RegisterShortcut