@@ -54,14 +54,15 @@ pub fn input_mappings() -> Mapping {
5454 entry!( KeyDown ( KeyZ ) ; modifiers=[ Accel , MouseLeft ] , action_dispatch=DocumentMessage :: Noop ) ,
5555 //
5656 // NodeGraphMessage
57- entry!( KeyDown ( MouseLeft ) ; action_dispatch=NodeGraphMessage :: PointerDown { shift_click: false , control_click: false , alt_click: false , right_click: false } ) ,
58- entry!( KeyDown ( MouseLeft ) ; modifiers=[ Shift ] , action_dispatch=NodeGraphMessage :: PointerDown { shift_click: true , control_click: false , alt_click: false , right_click: false } ) ,
59- entry!( KeyDown ( MouseLeft ) ; modifiers=[ Accel ] , action_dispatch=NodeGraphMessage :: PointerDown { shift_click: false , control_click: true , alt_click: false , right_click: false } ) ,
60- entry!( KeyDown ( MouseLeft ) ; modifiers=[ Shift , Accel ] , action_dispatch=NodeGraphMessage :: PointerDown { shift_click: true , control_click: true , alt_click: false , right_click: false } ) ,
61- entry!( KeyDown ( MouseLeft ) ; modifiers=[ Alt ] , action_dispatch=NodeGraphMessage :: PointerDown { shift_click: false , control_click: false , alt_click: true , right_click: false } ) ,
62- entry!( KeyDown ( MouseRight ) ; action_dispatch=NodeGraphMessage :: PointerDown { shift_click: false , control_click: false , alt_click: false , right_click: true } ) ,
57+ entry!( KeyDown ( MouseLeft ) ; action_dispatch=NodeGraphMessage :: PointerDown { shift_click: false , control_click: false , alt_click: false , right_click: false } ) ,
58+ entry!( KeyDown ( MouseLeft ) ; modifiers=[ Shift ] , action_dispatch=NodeGraphMessage :: PointerDown { shift_click: true , control_click: false , alt_click: false , right_click: false } ) ,
59+ entry!( KeyDown ( MouseLeft ) ; modifiers=[ Accel ] , action_dispatch=NodeGraphMessage :: PointerDown { shift_click: false , control_click: true , alt_click: false , right_click: false } ) ,
60+ entry!( KeyDown ( MouseLeft ) ; modifiers=[ Shift , Accel ] , action_dispatch=NodeGraphMessage :: PointerDown { shift_click: true , control_click: true , alt_click: false , right_click: false } ) ,
61+ entry!( KeyDown ( MouseLeft ) ; modifiers=[ Alt ] , action_dispatch=NodeGraphMessage :: PointerDown { shift_click: false , control_click: false , alt_click: true , right_click: false } ) ,
62+ entry!( KeyDown ( MouseRight ) ; action_dispatch=NodeGraphMessage :: PointerDown { shift_click: false , control_click: false , alt_click: false , right_click: true } ) ,
6363 entry!( DoubleClick ( MouseButton :: Left ) ; action_dispatch=NodeGraphMessage :: EnterNestedNetwork ) ,
64- entry!( PointerMove ; refresh_keys=[ Shift ] , action_dispatch=NodeGraphMessage :: PointerMove { shift: Shift } ) ,
64+ entry!( PointerMove ; refresh_keys=[ Shift ] , action_dispatch=NodeGraphMessage :: PointerMove { shift: Shift } ) ,
65+ entry!( PointerShake ; action_dispatch=NodeGraphMessage :: ShakeNode ) ,
6566 entry!( KeyUp ( MouseLeft ) ; action_dispatch=NodeGraphMessage :: PointerUp ) ,
6667 entry!( KeyDown ( Delete ) ; modifiers=[ Accel ] , action_dispatch=NodeGraphMessage :: DeleteSelectedNodes { delete_children: false } ) ,
6768 entry!( KeyDown ( Backspace ) ; modifiers=[ Accel ] , action_dispatch=NodeGraphMessage :: DeleteSelectedNodes { delete_children: false } ) ,
@@ -420,7 +421,7 @@ pub fn input_mappings() -> Mapping {
420421 entry!( KeyDown ( Tab ) ; modifiers=[ Control ] , action_dispatch=PortfolioMessage :: NextDocument ) ,
421422 entry!( KeyDown ( Tab ) ; modifiers=[ Control , Shift ] , action_dispatch=PortfolioMessage :: PrevDocument ) ,
422423 entry!( KeyDown ( KeyW ) ; modifiers=[ Accel ] , action_dispatch=PortfolioMessage :: CloseActiveDocumentWithConfirmation ) ,
423- entry!( KeyDown ( KeyW ) ; modifiers=[ Accel , Alt ] , action_dispatch=PortfolioMessage :: CloseAllDocumentsWithConfirmation ) ,
424+ entry!( KeyDown ( KeyW ) ; modifiers=[ Accel , Alt ] , action_dispatch=PortfolioMessage :: CloseAllDocumentsWithConfirmation ) ,
424425 entry!( KeyDown ( KeyO ) ; modifiers=[ Accel ] , action_dispatch=PortfolioMessage :: OpenDocument ) ,
425426 entry!( KeyDown ( KeyI ) ; modifiers=[ Accel ] , action_dispatch=PortfolioMessage :: Import ) ,
426427 entry!( KeyDown ( KeyX ) ; modifiers=[ Accel ] , action_dispatch=PortfolioMessage :: Cut { clipboard: Clipboard :: Device } ) ,
@@ -443,7 +444,7 @@ pub fn input_mappings() -> Mapping {
443444 entry!( KeyDown ( Space ) ; modifiers=[ Shift ] , action_dispatch=AnimationMessage :: ToggleLivePreview ) ,
444445 entry!( KeyDown ( Home ) ; modifiers=[ Shift ] , action_dispatch=AnimationMessage :: RestartAnimation ) ,
445446 ] ;
446- let ( mut key_up, mut key_down, mut key_up_no_repeat, mut key_down_no_repeat, mut double_click, mut wheel_scroll, mut pointer_move) = mappings;
447+ let ( mut key_up, mut key_down, mut key_up_no_repeat, mut key_down_no_repeat, mut double_click, mut wheel_scroll, mut pointer_move, mut pointer_shake ) = mappings;
447448
448449 let sort = |list : & mut KeyMappingEntries | list. 0 . sort_by ( |a, b| b. modifiers . count_ones ( ) . cmp ( & a. modifiers . count_ones ( ) ) ) ;
449450 // Sort the sublists of `key_up`, `key_down`, `key_up_no_repeat`, and `key_down_no_repeat`
@@ -460,6 +461,8 @@ pub fn input_mappings() -> Mapping {
460461 sort ( & mut wheel_scroll) ;
461462 // Sort `pointer_move`
462463 sort ( & mut pointer_move) ;
464+ // Sort `pointer_shake`
465+ sort ( & mut pointer_shake) ;
463466
464467 Mapping {
465468 key_up,
@@ -469,6 +472,7 @@ pub fn input_mappings() -> Mapping {
469472 double_click,
470473 wheel_scroll,
471474 pointer_move,
475+ pointer_shake,
472476 }
473477}
474478
0 commit comments