diff options
author | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2008-03-12 07:45:24 +0000 |
---|---|---|
committer | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2008-03-12 07:45:24 +0000 |
commit | eac0307cf013ed2e8a726c447ee454a3ee3055fd (patch) | |
tree | ba545e15bce439d017911c5e8152f57121ffb39e | |
parent | df088bd71093e1d2b0a81b9e628541253895610c (diff) | |
download | fpGUI-eac0307cf013ed2e8a726c447ee454a3ee3055fd.tar.xz |
Applied patch [ 1911886 ] listbox patch for editcombo bug from Jean-Marc
-rw-r--r-- | src/gui/gui_listbox.pas | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gui/gui_listbox.pas b/src/gui/gui_listbox.pas index e85629dc..a1448803 100644 --- a/src/gui/gui_listbox.pas +++ b/src/gui/gui_listbox.pas @@ -415,13 +415,12 @@ begin keyReturn: begin - DoSelect; + if FocusItem > 0 then + DoSelect; consumed := false; // to allow the forms to detect it end; else - begin - consumed := false; - end; + consumed := false; end; inherited HandleKeyPress(keycode, shiftstate, consumed); end; |