View Issue Details

IDProjectCategoryView StatusLast Update
0032056LazarusLCLpublic2017-06-26 21:10
ReporterDaniel Pereira Guimarães Assigned ToOndrej Pokorny  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
OSWindows 
Product Version1.6.4 
Summary0032056: Repeated OnClick call by ENTER key and raise exception
DescriptionIf you press the ENTER key on a button that raises an exception in the OnClick event and then press the ENTER key again to close the exception dialog, the OnClick event of the button is fired again.
Steps To Reproduce1. Create a new application.
2. Add a Button to Form.
3. Write Button1.OnClick as:

procedure TForm1.Button1Click(Sender: TObject);
begin
  raise Exception.Create(
    'Press RETURN / ENTER key to close this dialog.'0000013 +
    'Note that the OnClick event will fire again.');
end;

4. Run the application.
5. Set focus to Button1.
6. Press ENTER key to perform Button1.OnClick.
7. Press ENTER key to close exception dialog.
8. Note that the Button1.OnClick event will fire again.
TagsNo tags attached.
Fixed in Revision55398
LazTarget-
WidgetsetWin32/Win64, QT, QT5
Attached Files

Activities

Daniel Pereira Guimarães

2017-06-23 02:22

reporter  

Juha Manninen

2017-06-26 15:24

developer   ~0101356

It happens also with QT. This time GTK2 works right.

Ondrej Pokorny

2017-06-26 21:10

developer   ~0101357

Juha, please retest on Qt. I tested only win32.

Issue History

Date Modified Username Field Change
2017-06-23 02:22 Daniel Pereira Guimarães New Issue
2017-06-23 02:22 Daniel Pereira Guimarães File Added: EnterKeyOnClickExceptionBug.zip
2017-06-26 15:23 Juha Manninen LazTarget => -
2017-06-26 15:23 Juha Manninen Widgetset Win32/Win64 => Win32/Win64, QT, QT5
2017-06-26 15:24 Juha Manninen Note Added: 0101356
2017-06-26 21:06 Ondrej Pokorny Assigned To => Ondrej Pokorny
2017-06-26 21:06 Ondrej Pokorny Status new => assigned
2017-06-26 21:10 Ondrej Pokorny Fixed in Revision => 55398
2017-06-26 21:10 Ondrej Pokorny Note Added: 0101357
2017-06-26 21:10 Ondrej Pokorny Status assigned => resolved
2017-06-26 21:10 Ondrej Pokorny Resolution open => fixed