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;