mirror of https://gitlab.com/basile.b/dexed.git
editor position buffer on key up
This commit is contained in:
parent
817944c2e6
commit
9a13de3c05
|
@ -43,6 +43,7 @@ type
|
|||
protected
|
||||
procedure SetHighlighter(const Value: TSynCustomHighlighter); override;
|
||||
procedure KeyDown(var Key: Word; Shift: TShiftState); override;
|
||||
procedure KeyUp(var Key: Word; Shift: TShiftState); override;
|
||||
procedure MouseMove(Shift: TShiftState; X, Y: Integer); override;
|
||||
procedure MouseDown(Button: TMouseButton; Shift: TShiftState; X, Y:Integer); override;
|
||||
procedure MouseUp(Button: TMouseButton; Shift: TShiftState; X, Y:Integer); override;
|
||||
|
@ -298,9 +299,6 @@ end;
|
|||
|
||||
procedure TCESynMemo.KeyDown(var Key: Word; Shift: TShiftState);
|
||||
begin
|
||||
if Key in [VK_PRIOR, VK_NEXT] then
|
||||
fPositions.store;
|
||||
//
|
||||
inherited;
|
||||
identifierToD2Syn;
|
||||
//
|
||||
|
@ -311,6 +309,13 @@ begin
|
|||
end;
|
||||
end;
|
||||
|
||||
procedure TCESynMemo.KeyUp(var Key: Word; Shift: TShiftState);
|
||||
begin
|
||||
if Key in [VK_PRIOR, VK_NEXT, Vk_UP] then
|
||||
fPositions.store;
|
||||
inherited;
|
||||
end;
|
||||
|
||||
procedure TCESynMemo.MouseMove(Shift: TShiftState; X, Y: Integer);
|
||||
begin
|
||||
inherited;
|
||||
|
|
Loading…
Reference in New Issue