KeyListener

Could anyone help me!
I need to use the keyboard keys in my application as f1 and f2 as I declare them in keylistener?

Help Me

Hi,

You could try:

In the onOpen method of your solution put

plugins.window.createShortcut(‘F1’, globals.handle_shortCut);

function handle_shortCut(v_event) {
if(v_event.getType() == ‘F1’){
plugins.dialogs.showErrorDialog(‘’,‘Test’,‘OK’); //or what ever you like :roll:
}
}

I tested it in developer and smartclient (servoy 5.2.9)

regards,

Peter