File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -260,29 +260,29 @@ class Graph extends React.Component {
260
260
this . graphviz . removeDrawnEdge ( ) ;
261
261
this . unSelectComponents ( ) ;
262
262
}
263
- if ( event . key === 'Delete' ) {
263
+ else if ( event . key === 'Delete' ) {
264
264
this . deleteSelectedComponents . call ( this ) ;
265
265
this . graphviz . removeDrawnEdge ( ) ;
266
266
}
267
- if ( event . ctrlKey && event . key === 'c' ) {
267
+ else if ( event . ctrlKey && event . key === 'c' ) {
268
268
let nodes = this . selectedComponents . filter ( '.node' ) ;
269
269
if ( nodes . size ( ) > 0 ) {
270
270
let nodeName = nodes . selectWithoutDataPropagation ( "title" ) . text ( ) ;
271
271
this . latestNodeAttributes = this . dotGraph . getNodeAttributes ( nodeName ) ;
272
272
}
273
273
}
274
- if ( event . ctrlKey && event . key === 'v' ) {
274
+ else if ( event . ctrlKey && event . key === 'v' ) {
275
275
this . insertNodeWithLatestAttributes ( ) ;
276
276
}
277
- if ( event . ctrlKey && event . key === 'x' ) {
277
+ else if ( event . ctrlKey && event . key === 'x' ) {
278
278
let nodes = this . selectedComponents . filter ( '.node' ) ;
279
279
if ( nodes . size ( ) > 0 ) {
280
280
let nodeName = nodes . selectWithoutDataPropagation ( "title" ) . text ( ) ;
281
281
this . latestNodeAttributes = this . dotGraph . getNodeAttributes ( nodeName ) ;
282
282
}
283
283
this . deleteSelectedComponents . call ( this ) ;
284
284
}
285
- if ( event . key === '?' ) {
285
+ else if ( event . key === '?' ) {
286
286
this . props . onHelp ( ) ;
287
287
}
288
288
this . isDrawingEdge = false ;
You can’t perform that action at this time.
0 commit comments