Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Key Event / KeyShift!

Status
Not open for further replies.

swisslog

Programmer
Jul 11, 2002
20
CH
Hello!

I created a user event on a datawindow using pbm_dwnkey.

The idea is to test all characters the user enters in order to accelerate the edition. This works fine.

But there is a litle problem: with some combination of actions, suddenly the argument named "keyflags" is set to 1, just like if the user pressed the "SHIFT" key (but he did not!)

Then, the state of "SHIFT" remains as if the user continuousely pressed it. Not only in the event scipt, but for the whole system (if I quit my application, the shift key remains pressed, until I manualy press on it on the keyboard!)

My question: Is there a way to reset the shift state to default (i.e NOT pressed) ?

THANK YOU FOR YOUR HELP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top