Method code for $has_commands.all_shortcuts()

[Turn off line numbering]
  1: var s, a, as;
  2: 
  3: s = [];
  4: for a in (ancestors()) {
  5:     if (a == definer())
  6:         break;
  7:     if ((as = (| a.shortcuts() |)))
  8:         s += as.to_list();
  9: }
 10: return s;

// Created 27-Mar-1995 as a part of ColdCore, see: @help Credit

Tlon