- Timestamp:
- Apr 27, 2021, 6:48:47 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/UKeyBindings.pas
r385 r386 37 37 procedure Assign(Source: TKeyBindings); 38 38 procedure ResetToDefault; 39 procedure RemoveShortCut(ShortCut: TShortCut); 39 40 end; 40 41 … … 271 272 for I := 0 to Count - 1 do 272 273 Items[I].SetDefault; 274 end; 275 276 procedure TKeyBindings.RemoveShortCut(ShortCut: TShortCut); 277 var 278 I: Integer; 279 begin 280 for I := 0 to Count - 1 do begin 281 if Items[I].ShortCut = ShortCut then Items[I].ShortCut := 0; 282 if Items[I].ShortCut2 = ShortCut then Items[I].ShortCut2 := 0; 283 end; 273 284 end; 274 285 -
trunk/Settings.pas
r385 r386 244 244 begin 245 245 if Assigned(CurrentKeyBinding) then begin 246 if CurrentKeyBinding.ShortCut > 0 then 247 LocalKeyBindings.RemoveShortCut(CurrentKeyBinding.ShortCut); 248 if CurrentKeyBinding.ShortCut2 > 0 then 249 LocalKeyBindings.RemoveShortCut(CurrentKeyBinding.ShortCut2); 246 250 CurrentKeyBinding.ShortCut := TextToShortCut(EditShortCutPrimary.Text); 247 251 CurrentKeyBinding.ShortCut2 := TextToShortCut(EditShortCutSecondary.Text);
Note:
See TracChangeset
for help on using the changeset viewer.