OSDN Git Service

ジェスチャーを解除した際に、表示上解除されたように見えて実は解除されていなかったバグを修正。
authoryoffy <yoffy>
Mon, 25 Oct 2004 05:53:17 +0000 (05:53 +0000)
committeryoffy <yoffy>
Mon, 25 Oct 2004 05:53:17 +0000 (05:53 +0000)
KeySetting.pas

index 0e636ae..212c8b3 100644 (file)
@@ -296,7 +296,12 @@ begin
        if ActiveListView.Selected = nil then Exit;
        if (GetKeyState( VK_SHIFT ) and $80000000) <> 0 then begin
                GestureEdit.Text := '';
-               ActiveListView.Selected.SubItems[2] := '';
+               Item := ActiveListView.Selected;
+               Item.SubItems[2] := '';
+               if TObject(Item.Data) is TKeySettingItem then begin
+                       KeyItem := TKeySettingItem(Item.Data);
+                       KeyItem.Gesture := '';
+               end;
                Exit;
        end;