Posts

Showing posts with the label ClientEvent

Keyboard shortcuts on ADF table

Image
JDev version: 12.2.1.3.0 Source: GitHub
We often create applications which require very quick data entry. As a real world example, imagine creating a supply-chain application for an e-commerce vendor. The computers available at warehouses are not equipped with mouse either. A common request from such users is to enable the application with the usual keyboard shortcuts, in order to allow fast data entry.
Now, there is a great deal of discussion as to how much we should be overriding the default browser shortcuts. Some web developers are quite vocal in their view of not overriding basic browser shortcuts such as Ctrl+S, Ctrl+T or Ctrl+W. That discussion is beyond the scope of this blog.
This blog mainly deals with creating custom shortcuts, along with Control or Shift key modifiers.
The setup is simple - an ADF application which displays employee records from the HR schema. The user selects a record and uses keyboard short-cuts to perform operations such as:
a) copying and pasting a r…