From ddaaa7b34e46abeba3d2c882910e79c818c3b6d0 Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Sun, 29 Sep 2013 08:09:04 +0000 Subject: [PATCH] Get Ctrl+Backspace hotkey to work in grid inplace editor, by enabling autocompletion + autosuggestion. Fixes issue #3168. --- source/grideditlinks.pas | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/grideditlinks.pas b/source/grideditlinks.pas index 144391a9..d0c39893 100644 --- a/source/grideditlinks.pas +++ b/source/grideditlinks.pas @@ -8,7 +8,7 @@ uses Windows, Forms, Graphics, Messages, VirtualTrees, ComCtrls, SysUtils, Classes, StdCtrls, ExtCtrls, CheckLst, Controls, Types, Dialogs, Menus, Mask, DateUtils, Math, dbconnection, mysql_structures, helpers, texteditor, bineditor, gnugettext, - StrUtils; + StrUtils, ShLwApi; type // Radio buttons and checkboxes which do not pass key to their parent control @@ -1045,6 +1045,9 @@ begin FEdit.ParentColor := True; FEdit.BorderStyle := bsNone; FEdit.OnKeyDown := DoKeyDown; + // Get Ctrl+Backspace hotkey to work, by enabling autocompletion + autosuggestion + // See issue #3168 + SHAutoComplete(FEdit.Handle, SHACF_AUTOAPPEND_FORCE_OFF or SHACF_AUTOSUGGEST_FORCE_OFF); FMainControl := FEdit; FButton := TButton.Create(FPanel);