mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: the issue that TKASCDEdit could not gain focus when clicked
This commit is contained in:
parent
307a682f27
commit
0ec7b7e32b
1 changed files with 7 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ unit KASCDEdit;
|
|||
interface
|
||||
|
||||
uses
|
||||
Classes, SysUtils, LResources, Controls, Graphics, Dialogs, Types,
|
||||
Classes, SysUtils, LazVersion, LResources, Controls, Graphics, Dialogs, Types,
|
||||
Menus, CustomDrawnControls, CustomDrawnDrawers, CustomDrawn_Common;
|
||||
|
||||
type
|
||||
|
|
@ -412,6 +412,12 @@ begin
|
|||
begin
|
||||
inherited MouseDown(Button, Shift, X, Y);
|
||||
|
||||
{$IF Laz_FullVersion >= 4990000}
|
||||
// see also LCL 4b41b7a:
|
||||
// customdrawn: remove redundant SetFocus from TCDControl.MouseDown
|
||||
SetFocus();
|
||||
{$ENDIF}
|
||||
|
||||
FDragDropStarted := True;
|
||||
|
||||
// Caret positioning
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue