>I would never have thought of passing parameters to DoDefault() in this case!
Well, once you burn your fingers on forgetting to pass them where you must pass them, it becomes a habit :)
>There is one thing I don't quite understand. According to HELP INKEY(), Alt-C also has the code 46, and I expected that I had to expand the condition to
nKeyCode = 46 and empty(nShiftAltCtrl).
The general user population this was intended for doesn't have a habit of using Alt+character stuff, so this really hasn't crossed my mind.
>However, I didn't do this, and yet Alt-C did NOT insert a comma as expected.
Right - tried it and it doesn't fire anything; there was nothing in the menu or buttons that would eat the alt+c. Short of seeing in the debugger what gives, I can only assume that alt+stuff doesn't get caught in the keypress at all. I seem to recall something like that, people having trouble trying to catch alt+key in the keypress and it wouldn't work. Don't have the time to debug now, but I really think this may be the case.