>I am trying to contrl keyboard behavior with a custom drop down combo box. If the list is dropped down I want the left arrow key to do a shift+tab (move back in the tab order) and if the list is not open I want uparrow and left arrow to do the same thing. I trap the keystroke in the keypress event for the control and then issue the command:
>nodefault
>keyboard '{shift+tab}'
>and it does not work. If I try :
>nodefault
>thisform.keypress(9,1) it also does not work. The code works for the right and down arrows but even though I can trace the command focus never moves on the form. What is going on? If you can tell me how to control this I would be most grateful. Thanks:)
Try keypress(15,1) - 15 is the InKey() code for backspace. Yes, I know it's shifted, but nevertheless it doesn't make it (9,1), it's either (15,1) or (15,0) or even (15, don't care).