mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
Only autostart grid editor if mouse hit was *exactly* on the cell text. Avoids annoyance in index editor.
This commit is contained in:
@ -1454,7 +1454,7 @@ begin
|
||||
// Handle click event
|
||||
VT := Sender as TVirtualStringTree;
|
||||
VT.GetHitTestInfoAt(Mouse.CursorPos.X-VT.ClientOrigin.X, Mouse.CursorPos.Y-VT.ClientOrigin.Y, True, Click);
|
||||
if Assigned(Click.HitNode) then
|
||||
if Assigned(Click.HitNode) and (Click.HitColumn > NoColumn) and (hiOnItemLabel in Click.HitPositions) then
|
||||
VT.EditNode(Click.HitNode, Click.HitColumn);
|
||||
end;
|
||||
|
||||
|
Reference in New Issue
Block a user