Can I use shortcut keys in a VLF-ONE application?

Yes - but you need to avoid conflicts with shortcut keys that the web browsers you support use.

Generally some input element in your VLF-ONE application needs to have focus for a shortcut key to function as you expect.

To enable a shortcut key globally see the shipped example DF_OSYSTM for an example of globally enrolling and actioning shortcut keys. 

To enable a shortcut key in a command handler or filter use code like this:

Define_Com Class(#PRIM_STPG) Name(#CtrlF7) Parent(#COM_OWNER) Shortcut(Ctrl+F7)

 

Evtroutine Handling(#CtrlF7.Pressed)

#Sys_web.Alert Caption('Ctrl-F7 used')

Endroutine

 

Also refer to the Example Applications -> Advanced -> Short Cut and Function Keys.