Skip to content

Commit

Permalink
Drop the Ctrl modifier for the extend/trim tool
Browse files Browse the repository at this point in the history
  • Loading branch information
YoannQDQ committed Dec 17, 2024
1 parent 72f07dc commit 1d0cb13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/app/qgsmaptooltrimextendfeature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,8 @@ void QgsMapToolTrimExtendFeature::canvasReleaseEvent( QgsMapMouseEvent *e )
emit messageEmitted( tr( "Couldn't trim or extend the feature." ) );
}

// If Ctrl or Shift is pressed, keep the tool active with its reference feature
if ( !( e->modifiers() & ( Qt::ControlModifier | Qt::ShiftModifier ) ) )
// If Shift is pressed, keep the tool active with its reference feature
if ( !( e->modifiers() & Qt::ShiftModifier ) )
deactivate();
break;
}
Expand Down
2 changes: 1 addition & 1 deletion src/ui/qgisapp.ui
Original file line number Diff line number Diff line change
Expand Up @@ -1181,7 +1181,7 @@ Shift+O to turn segments into straight or curve lines.</string>
<property name="toolTip">
<string>Trim/Extend Feature
- Click to set the reference segment
- Click on another segment to trim it or extend it to the reference segment (Use Shift or Ctrl to keep the reference segment active)
- Click on another segment to trim it or extend it to the reference segment (Use Shift to keep the reference segment active)
Note : Segment snapping must be enabled in the snapping Toolbar</string>
</property>
</action>
Expand Down

0 comments on commit 1d0cb13

Please sign in to comment.