Pages

Monday, August 1, 2016

How to set hotkeys for buttons in Oracle Apex



Hi all,

I would like you to show how to implement hotkey for Buttons in Oracle Apex.


  1. Create button and give Static Id to that button. For Example:

                

  2. Click on Edit Page and in JavaScript Execute when Page Loads properties
     write following JavaScript code:

                  document.getElementById("back").accessKey = "c";
       

     
    and then save the changes. Action of button with static id "back" will be executed when we for example on Chrome press [ALT]  and "c" key

    Note: The shortcut varies from different browsers:

    IE, Chrome, Safari, Opera 15+: [ALT] + accesskey  
    Opera prior version 15: [SHIFT] [ESC] + accesskey  
    Firefox: [ALT] [SHIFT] + accesskey