File tree 1 file changed +18
-8
lines changed
1 file changed +18
-8
lines changed Original file line number Diff line number Diff line change @@ -733,15 +733,25 @@ void QgsMapToolNodeTool::keyPressEvent( QKeyEvent* e )
733
733
e->ignore ();
734
734
}
735
735
else
736
- if ( mSelectedFeature && ( e->key () == Qt::Key_Less || e->key () == Qt::Key_Greater ) )
737
- {
738
- int firstSelectedIndex = firstSelectedVertex ();
739
- if ( firstSelectedIndex == -1 ) return ;
736
+ if ( mSelectedFeature && ( e->key () == Qt::Key_Less || e->key () == Qt::Key_Comma ) )
737
+ {
738
+ int firstSelectedIndex = firstSelectedVertex ();
739
+ if ( firstSelectedIndex == -1 ) return ;
740
740
741
- mSelectedFeature ->deselectAllVertexes ();
742
- safeSelectVertex ( firstSelectedIndex + (( e->key () == Qt::Key_Less ) ? -1 : + 1 ) );
743
- mCanvas ->refresh ();
744
- }
741
+ mSelectedFeature ->deselectAllVertexes ();
742
+ safeSelectVertex ( firstSelectedIndex - 1 );
743
+ mCanvas ->refresh ();
744
+ }
745
+ else
746
+ if ( mSelectedFeature && ( e->key () == Qt::Key_Greater || e->key () == Qt::Key_Period ) )
747
+ {
748
+ int firstSelectedIndex = firstSelectedVertex ();
749
+ if ( firstSelectedIndex == -1 ) return ;
750
+
751
+ mSelectedFeature ->deselectAllVertexes ();
752
+ safeSelectVertex ( firstSelectedIndex + 1 );
753
+ mCanvas ->refresh ();
754
+ }
745
755
}
746
756
747
757
void QgsMapToolNodeTool::keyReleaseEvent ( QKeyEvent* e )
You can’t perform that action at this time.
0 commit comments