Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Issue with Implementing Global Hotkeys in Oracle APEX Application

Sanket SatheMay 6 2024

I've implemented some JavaScript code in my Oracle APEX application to create global hotkeys. The code works perfectly in one of my applications but fails in another, showing an error in the browser's console. Below is the JavaScript code I've added to both applications:

$(document).ready(function() {
console.log('run');
apex.actions.add({
name: 'myGlobalAction',
label: 'My Global Action',
action: function() {
console.log('Global action triggered!');
$('a[href*="hot_key_test"]').trigger('click');
},
shortcut: 'Ctrl+Shift+Q'
});
apex.actions.add({
name: 'myHelpAction',
label: 'My Help Action',
action: function() {
$("[data-id=pageHelp]").click();
},
shortcut: 'Ctrl+Shift+H'
});
});

showing following error

image (7).png

Comments
Post Details
Added on May 6 2024
1 comment
83 views