Return a value from set_shortcuts
Added handling of component-wrapped functions. Not happy yet though.
Exclude tests