Project JEDI - Issue Tracker
Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0006198 [JEDI VCL] 00 JVCL Components tweak always 2013-09-09 10:14 2015-09-14 13:20
Reporter ZENsan View Status public  
Assigned To AHUser
Priority normal Resolution fixed  
Status resolved   Product Version Daily / GIT
Summary 0006198: SetFocus called without check for CanFocus
Description Issue very similar to QC111284 entry. In the TJvDBDateTimePicker.KeyPress event there is an issue:
  ...
  case Key of
    0000032..0000255:
      FDataLink.Edit;
    Esc:
      begin
        FDataLink.Reset;
        SetFocus; <- You cant call SetFocus without checking for CanFocus (at least);
        Key := #0;
      end;
  end;
Additional Information
Tags No tags attached.
Attached Files ? file icon JvDBDateTimePicker.patch [^] (332 bytes) 2013-09-09 10:14

- Relationships

-  Notes
(0020635)
AHUser (developer)
2013-09-09 17:54

How does the TJvDBDateTimePicker receive the ESC key if it isn't visible or enabled? What function emulated the key press in your case?
(0020636)
ZENsan (reporter)
2013-09-09 17:57

Elementary! KeyPreview = True on TForm, Escape key hides the form and then the control receives also the KeyDown/Keypress events, but in that moment we already cant set the focus!
(0020637)
ZENsan (reporter)
2013-09-09 17:57

No emulation :)
(0020638)
AHUser (developer)
2013-09-09 18:25

Fix in master.

- Issue History
Date Modified Username Field Change
2013-09-09 10:14 ZENsan New Issue
2013-09-09 10:14 ZENsan File Added: JvDBDateTimePicker.patch
2013-09-09 17:54 AHUser Note Added: 0020635
2013-09-09 17:54 AHUser Status new => feedback
2013-09-09 17:57 ZENsan Note Added: 0020636
2013-09-09 17:57 ZENsan Note Added: 0020637
2013-09-09 18:25 AHUser Note Added: 0020638
2013-09-09 18:25 AHUser Status feedback => resolved
2013-09-09 18:25 AHUser Fixed in Version => Daily / SVN
2013-09-09 18:25 AHUser Resolution open => fixed
2013-09-09 18:25 AHUser Assigned To => AHUser
2015-09-14 13:20 obones Fixed in Version Daily / GIT => 3.48


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker