Mike Lewis
Programmer
This is not really a question, but I was wondering if anyone else had noticed this: Ctrl+Left-Arrow and Ctrl+Z both have the same key codes.
If you trap those two keys in a Keypress event, you see that nKeyCode is 26, and nShiftAltCtrl is 2, in both cases. Similarly with INKEY() and LASTKEY().
In my own application, I use Ctrl+Z to let users undo a drag-and-drop operation. Today, a user pointed out that Ctrl-Left Arrow does the same thing, which is not what he wants.
I wonder if there's an easy workaround. Perhaps I can use low-level API calls to trap the keystrokes before they reach the app? But that could be a lot of hassle.
Or maybe I should just tell the users that it's a bonus feature?
Any comments would be welcome.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
Visual FoxPro tips, advice, training, consultancy
Custom software for your business
If you trap those two keys in a Keypress event, you see that nKeyCode is 26, and nShiftAltCtrl is 2, in both cases. Similarly with INKEY() and LASTKEY().
In my own application, I use Ctrl+Z to let users undo a drag-and-drop operation. Today, a user pointed out that Ctrl-Left Arrow does the same thing, which is not what he wants.
I wonder if there's an easy workaround. Perhaps I can use low-level API calls to trap the keystrokes before they reach the app? But that could be a lot of hassle.
Or maybe I should just tell the users that it's a bonus feature?
Any comments would be welcome.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
Visual FoxPro tips, advice, training, consultancy
Custom software for your business