Skip to content

Instantly share code, notes, and snippets.

@hhudson
Created December 9, 2022 17:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hhudson/3c31a4a3f53c2323988152f638fda081 to your computer and use it in GitHub Desktop.
Save hhudson/3c31a4a3f53c2323988152f638fda081 to your computer and use it in GitHub Desktop.
Example code from Episode 94
window.onload = function() {
apex.actions.add({
name: "page-help",
label: "Get Page Help",
action: function getPageHelp(){
$('[data-id=pageHelp]').click();
}
});
apex.actions.addShortcut("Ctrl+Shift+H", "page-help");
apex.actions.add({
name: "page-item-help",
label: "Get Item Help",
action: function getItemHelp() {
$("*:focus").siblings()[0].click();
}
});
apex.actions.addShortcut("Ctrl+Shift+I", "page-item-help");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment