OSDN Git Service

レスエディタ,キー設定でマウスジェスチャーの入力がクリアされない不具合の修正
authorh677 <h677>
Sun, 14 Jan 2007 13:40:25 +0000 (13:40 +0000)
committerh677 <h677>
Sun, 14 Jan 2007 13:40:25 +0000 (13:40 +0000)
Editor.pas
Gesture.pas
Giko.pas
KeySetting.pas
gikoNavi.res

index f8f81c2..1b135a1 100644 (file)
@@ -1757,6 +1757,7 @@ var
        Action: TAction;
 begin
        s := MouseGesture.GetGestureStr;
+    MouseGesture.Clear;
        Action := GikoSys.Setting.Gestures.GetGestureAction(s);
        if Action <> nil then
                Action.Execute;
index 26a7029..c94b1cd 100644 (file)
@@ -36,7 +36,7 @@ type
                property GestureCount: Integer read GetGestureCount;
                property Margin: Integer read FMargin write FMargin;
                function GetGestureStr: string;
-               procedure ClearGesture;
+               procedure Clear;
                property OnGestureStart: TNotifyEvent read FOnGestureStart write FOnGestureStart;
                property OnGestureMove: TNotifyEvent read FOnGestureMove write FOnGestureMove;
                property OnGestureEnd: TNotifyEvent read FOnGestureEnd write FOnGestureEnd;
@@ -65,7 +65,7 @@ end;
 destructor TMouseGesture.Destroy;
 begin
        UnHook;
-       ClearGesture;
+       Clear;
        FGestureItemList.Free;
        inherited;
 end;
@@ -164,7 +164,7 @@ begin
                                        if Assigned(FOnGestureEnd) then begin
                                                FOnGestureEnd(Self);
                     end else begin
-                        ClearGesture;
+                        Clear;
                     end;
                                end else begin
                                        FCancelMode := True;
@@ -241,7 +241,7 @@ begin
 end;
 
 //\83W\83F\83X\83`\83\83\81[\82ð\83N\83\8a\83A\82·\82é
-procedure TMouseGesture.ClearGesture;
+procedure TMouseGesture.Clear;
 begin
        FGestureItemList.Clear;
 end;
index eafbe6e..8f340bd 100644 (file)
--- a/Giko.pas
+++ b/Giko.pas
@@ -6782,7 +6782,7 @@ var
        Action: TAction;
 begin
        s := MouseGesture.GetGestureStr;
-    MouseGesture.ClearGesture;
+    MouseGesture.Clear;
        Action := GikoSys.Setting.Gestures.GetGestureAction(s);
        if Action <> nil then
                Action.Execute;
index e835794..eb1adf3 100644 (file)
@@ -358,6 +358,7 @@ end;
 procedure TKeySettingForm.OnGestureEnd(Sender: TObject);
 begin
        GestureEdit.Text := MouseGesture.GetGestureStr;
+    MouseGesture.Clear;
 end;
 
 procedure TKeySettingForm.GestureCheckBoxClick(Sender: TObject);
index e3f4f9b..e9f21d8 100644 (file)
Binary files a/gikoNavi.res and b/gikoNavi.res differ