|
@@ -8,7 +8,7 @@ interface
|
|
uses
|
|
uses
|
|
Classes, SysUtils, FileUtil, LResources, Forms, Controls, ExtCtrls,
|
|
Classes, SysUtils, FileUtil, LResources, Forms, Controls, ExtCtrls,
|
|
BGRABitmap, BGRABitmapTypes,
|
|
BGRABitmap, BGRABitmapTypes,
|
|
- LazPaintType, UChooseColorInterface;
|
|
|
|
|
|
+ LazPaintType, UChooseColorInterface, LCLType;
|
|
|
|
|
|
type
|
|
type
|
|
|
|
|
|
@@ -22,6 +22,7 @@ type
|
|
procedure FormKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);
|
|
procedure FormKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);
|
|
procedure FormKeyUp(Sender: TObject; var Key: Word; Shift: TShiftState);
|
|
procedure FormKeyUp(Sender: TObject; var Key: Word; Shift: TShiftState);
|
|
procedure FormShow(Sender: TObject);
|
|
procedure FormShow(Sender: TObject);
|
|
|
|
+ procedure FormUTF8KeyPress(Sender: TObject; var UTF8Key: TUTF8Char);
|
|
private
|
|
private
|
|
function GetColorTarget: TColorTarget;
|
|
function GetColorTarget: TColorTarget;
|
|
function GetDarkTheme: boolean;
|
|
function GetDarkTheme: boolean;
|
|
@@ -89,6 +90,12 @@ begin
|
|
self.EnsureVisible(False);
|
|
self.EnsureVisible(False);
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
+procedure TFChooseColor.FormUTF8KeyPress(Sender: TObject; var UTF8Key: TUTF8Char);
|
|
|
|
+begin
|
|
|
|
+ if not EditorVisible and Assigned(LazPaintInstance) then
|
|
|
|
+ LazPaintInstance.SendUTF8KeyPressEventToMainForm(UTF8Key);
|
|
|
|
+end;
|
|
|
|
+
|
|
procedure TFChooseColor.SetCurrentColor(value: TBGRAPixel);
|
|
procedure TFChooseColor.SetCurrentColor(value: TBGRAPixel);
|
|
begin
|
|
begin
|
|
if Assigned(FInterface) then
|
|
if Assigned(FInterface) then
|