Adding keyboard shortcuts to an application

You can create keyboard shortcuts for navigating and selecting user-interface controls within a specific task in an application. To add a new shortcut to an application, you must edit the corresponding task's configuration XML file.

Any existing keyboard shortcuts, which are defined by the default Datacap installation, take precedence over new keyboard shortcuts. When you add shortcuts, ensure that they do not conflict with existing shortcuts.

To add a keyboard shortcut for a task in an application:

  1. Open the task's configuration XML file.
    Tip: The task's configuration XML file is located at default installation location\application name\dco_application name\task name.set.xml. For example, the location of the configuration file for the Fixup task in the TravelDocs application is C:\Datacap\TravelDocs\dco_TravelDocs\fixup.set.xml.
  2. Determine the user-interface control for which you want to add a keyboard shortcut.
    For example, to add a shortcut to a control that is named Page Status, search for label="Page Status" in the XML file.
  3. On the same line where you located the label, add this code: hotkey=.
  4. Enter a value for hotkey=.
    For example, if you enter hotkey=A, then Ctrl-A is the keyboard shortcut for selecting Page Status.
  5. Save the XML file.