Created
December 9, 2022 17:26
-
-
Save hhudson/3c31a4a3f53c2323988152f638fda081 to your computer and use it in GitHub Desktop.
Example code from Episode 94
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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