Open
Description
Steps to reproduce :
- Create grid with 1000 nodes, first column filled with record number, enable incremental search
- Go to node 899
- Count how many times you have to press key "9" before you reach node 999.
Suggested resolution:
- add coNoSingleLetterIncSearch to TVTColumnOption
- add toNoSingleLetterIncSearch to TVTMiscOption
- in TBaseVirtualTree.HandleIncrementalSearch add :
// The "single letter mode" is used to advance quickly from node to node when pressing the same key several times.
if toNoSingleLetterIncSearch in TreeOptions.MiscOptions then // gigo
SingleLetter := false // gigo
else // gigo
if (FocusedColumn > -1) and (coNoSingleLetterIncSearch in Header.Columns[FocusedColumn].Options) then // gigo
SingleLetter := false // gigo
else // gigo
SingleLetter := (Length(FSearchBuffer) = 1) and not PreviousSearch and (FSearchBuffer[1] = NewChar);
That way we can disable single letter incremental search per column / per tree as needed.