Skip to main content
Dominique Sacre
Rocketeer
Feb 15, 2013 10:28 PM UTC

How can I check to see if the Escape key was pressed in my graphical application

Problem:

How can I check to see if the Escape key was pressed in my graphical application ?

Resolution:

In Dialog System the escape key can be trapped with "ESC" Event.

If you are using the GUI Class library for controls or windows then you can trap the ESCAPE key with the p2ce-functionkey event.

Attach is some example code to illustrate how you can acheive this.

Attachments:

escape.zip

Old KB# 1361