Global function key support

Global function key supports a generic action or fixed action for all pages until the browser window is closed. Customer can disable the default behavior of browser via this mechanism,
for example, reload(F5, ctrl+R).

Please refer to the supported keys in Supported key/combination.

Process

  1. Edit and save all the definitions in one single JS file manually for each project, for example in js/keymap/globalKeyMap.js.
  2. Register the definition in template file by adding the following code:
    enegine.registerKeys("<%=baseURL%>js/keymap/globalKeyMap.js")
    In Multi-project:
    • Global js in the global project would work on the whole session and. Users could also save local JS in local projects. Register the definition is like:
    • For the same key map items, the local js file would override the common js and the next js would override the previous js.