mirror of https://gitlab.com/basile.b/dexed.git
added <Ctrl> + <middle mouse button> shortcut to restore editor zoom
This commit is contained in:
parent
611e28f878
commit
d89a57a933
|
@ -29,6 +29,7 @@ type
|
|||
procedure KeyDown(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;
|
||||
public
|
||||
constructor Create(aOwner: TComponent); override;
|
||||
destructor destroy; override;
|
||||
|
@ -74,7 +75,7 @@ begin
|
|||
fStoredFontSize := Font.Size;
|
||||
|
||||
MouseOptions := MouseOptions +
|
||||
[ emAltSetsColumnMode, emDragDropEditing, emCtrlWheelZoom];
|
||||
[emAltSetsColumnMode, emDragDropEditing, emCtrlWheelZoom];
|
||||
Gutter.LineNumberPart.ShowOnlyLineNumbersMultiplesOf := 5;
|
||||
Gutter.LineNumberPart.MarkupInfo.Foreground := clGray;
|
||||
Gutter.SeparatorPart.LineOffset := 1;
|
||||
|
@ -226,6 +227,13 @@ begin
|
|||
identifierToD2Syn;
|
||||
end;
|
||||
|
||||
procedure TCESynMemo.MouseUp(Button: TMouseButton; Shift: TShiftState; X, Y:Integer);
|
||||
begin
|
||||
inherited;
|
||||
if (Button = mbMiddle) and (Shift = [ssCtrl]) then
|
||||
Font.Size := fStoredFontSize;
|
||||
end;
|
||||
|
||||
initialization
|
||||
D2Syn := TSynD2Syn.create(nil);
|
||||
LfmSyn := TSynLFMSyn.Create(nil);
|
||||
|
|
Loading…
Reference in New Issue