Skip to content

Commit

Permalink
Update deprecated to Container.Pressed
Browse files Browse the repository at this point in the history
  • Loading branch information
michaliskambi committed Oct 4, 2024
1 parent 5846366 commit 7eb90cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion castle_model_viewer.dpr
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,8 @@ begin
end;

{ Support selecting item by ctrl + right button click. }
if Event.IsMouseButton(buttonRight) and (mkCtrl in Window.Pressed.Modifiers) then
if Event.IsMouseButton(buttonRight) and
(mkCtrl in Window.Container.Pressed.Modifiers) then
begin
SelectedItem := Scene.PointingDeviceOverItem;
SelectedPointWorld := Scene.PointingDeviceOverPoint;
Expand Down

0 comments on commit 7eb90cb

Please sign in to comment.