View Issue Details

IDProjectCategoryView StatusLast Update
0003131JEDI VCL00 JVCL Componentspublic2005-11-22 09:11
ReporterpgwillemsenAssigned Toobones 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
PlatformDelphi 7OSWindowsOS VersionXP
Product Version3.00 
Target VersionFixed in Version3.10 
Summary0003131: TJvDBGrid handles OnKeyPress event twice
DescriptionA TJvDBGrid handles an OnKeyPress() event twice. One time correctly, one time with var Key equal to #0. This problem occurs after updating to version 3.
Steps To ReproduceClick New > Application. Drop a TJvDBGrid on the form.

In the OnKeyPress event procedure of the JvDBGrid write:
begin
  ShowMessage(IntToStr(Ord(Key)));
end;

Run the application and press a key. Everything seems to work correctly. Now press the Enter key. Two values are showed: 13 (correct) and 0 (incorrect).

In my real application, the OnKeyPress() event is *always* fired twice. So, when I press the '8' key, it is one time fired with Key = '8' and one time with Key = #0.
TagsNo tags attached.

Activities

edbored

2005-08-18 22:25

reporter   ~0007812

Could not reproduce with D7E/W2K using updated jcl/jvcl from cvs 2005/08/17.

Tested with simple "Showmessage(Key)" in event handler - only the actual key pressed is displayed.

Does this occur in a simple test case?

EdB

Informatix

2005-10-10 09:16

developer   ~0008010

I tried to reduce the number of KeyPressed event triggers as much as it was possible. I can't do better. In most cases, you'll have only one KeyPressed event fired.
Verify that your JVCL files are up-to-date.

Fred

obones

2005-11-22 09:11

administrator   ~0008133

No answers for more than 14 days, this is considered fixed. Use the daily snapshots from here:

http://jvcl.sf.net/daily/

Issue History

Date Modified Username Field Change
2005-08-05 01:51 pgwillemsen New Issue
2005-08-18 22:25 edbored Note Added: 0007812
2005-10-10 09:16 Informatix Note Added: 0008010
2005-11-22 09:11 obones Status new => resolved
2005-11-22 09:11 obones Resolution open => fixed
2005-11-22 09:11 obones Assigned To => obones
2005-11-22 09:11 obones Note Added: 0008133