File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -2529,6 +2529,10 @@ procedure TCompileForm.ESelectAllOccurrencesClick(Sender: TObject);
2529
2529
2530
2530
procedure TCompileForm.ESelectNextOccurrenceClick (Sender: TObject);
2531
2531
begin
2532
+ { Currently this always uses GetWordOccurrenceFindOptions but ideally it would
2533
+ know whether this is the 'first' SelectNext or not. Then, if first it would
2534
+ do what SelectAll does to choose a FindOptions. And if next it would reuse
2535
+ that. This is what VSCode does. }
2532
2536
FActiveMemo.SelectNextOccurrence(GetWordOccurrenceFindOptions);
2533
2537
end ;
2534
2538
@@ -2802,6 +2806,16 @@ procedure TCompileForm.HDocClick(Sender: TObject);
2802
2806
procedure TCompileForm.MemoKeyDown (Sender: TObject; var Key: Word;
2803
2807
Shift: TShiftState);
2804
2808
begin
2809
+ if Key = VK_RIGHT then begin
2810
+ var Memo := Sender as TScintEdit;
2811
+ if (Memo.Call(SCI_GETSELECTIONMODE, 0 , 0 ) = SC_SEL_RECTANGLE) or
2812
+ (Memo.Call(SCI_GETSELECTIONMODE, 0 , 0 ) = SC_SEL_THIN) then begin
2813
+ // 'Enable Column Selection to Multi-editing';
2814
+ Memo.Call(SCI_SETSELECTIONMODE, SC_SEL_STREAM, 0 );
2815
+ Memo.Call(SCI_SETSELECTIONMODE, SC_SEL_STREAM, 0 );
2816
+ end ;
2817
+ end ;
2818
+
2805
2819
if Key = VK_F1 then begin
2806
2820
var HelpFile := GetHelpFile;
2807
2821
if Assigned(HtmlHelp) then begin
You can’t perform that action at this time.
0 commit comments