Reputation: 5
I have a shortcut installed on the desktop through Wix. How can I associate the shortcut with the function key F4. i.e shortcut should be launched when the user press F4.
Thanks in advance!
Upvotes: 0
Views: 121
Reputation: 32250
The <Shortcut>
element has an optional Hotkey
attribute:
The hotkey for the shortcut. The low-order byte contains the virtual-key code for the key, and the high-order byte contains modifier flags. This must be a non-negative number. Authors of installation packages are generally recommend not to set this option, because this can add duplicate hotkeys to a users desktop. In addition, the practice of assigning hotkeys to shortcuts can be problematic for users using hotkeys for accessibility.
Have you tried it out? Pay attention to the warning concerning setting hotkeys for shortcuts.
Upvotes: 1