Disable "Esc" key

Hi,

Is there a way to trap/disable the “Esc” key?

Currently, when I press “Esc” when a form is open, it toggles between “Graphics” and “Data” mode.

Additionally, if it toggles from “Data” to “Graphics” and the “toolbar” was originally set to be off (not visible), when it toggles back to “Data” from “Graphics”, the toolbar is now visible.

You explain this feature as if it was a bug! :rofl:


Yes, there is a way, you can use a hotkey.

For example, if you put this code in your .Initialize procedure, pressing the ESC key will display a notification.

definehotkeys "FileGlobal", "ESCAPE", |||nsnotify "Escape!"|||

I just double checked to make sure this actually works for the Esc key - it does.

Heh … well, it was certainly unexpected … and, I’m surprised I haven’t run into this before … LOL

Thanks!!