mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 05:31:01 +00:00 
			
		
		
		
	Replace Ctrl in editor shortcuts with Cmd or Ctrl depending on platform
This commit is contained in:
		
							parent
							
								
									571cd0eb79
								
							
						
					
					
						commit
						6afadbaa9f
					
				
					 25 changed files with 54 additions and 50 deletions
				
			
		|  | @ -225,7 +225,7 @@ void CurveEdit::gui_input(const Ref<InputEvent> &p_event) { | |||
| 			} else if (grabbing == GRAB_NONE) { | ||||
| 				// Adding a new point. Insert a temporary point for the user to adjust, so it's not in the undo/redo.
 | ||||
| 				Vector2 new_pos = get_world_pos(mpos).clamp(Vector2(0.0, curve->get_min_value()), Vector2(1.0, curve->get_max_value())); | ||||
| 				if (snap_enabled || mb->is_ctrl_pressed()) { | ||||
| 				if (snap_enabled || mb->is_command_or_control_pressed()) { | ||||
| 					new_pos.x = Math::snapped(new_pos.x, 1.0 / snap_count); | ||||
| 					new_pos.y = Math::snapped(new_pos.y - curve->get_min_value(), curve->get_range() / snap_count) + curve->get_min_value(); | ||||
| 				} | ||||
|  | @ -276,7 +276,7 @@ void CurveEdit::gui_input(const Ref<InputEvent> &p_event) { | |||
| 					// Drag point.
 | ||||
| 					Vector2 new_pos = get_world_pos(mpos).clamp(Vector2(0.0, curve->get_min_value()), Vector2(1.0, curve->get_max_value())); | ||||
| 
 | ||||
| 					if (snap_enabled || mm->is_ctrl_pressed()) { | ||||
| 					if (snap_enabled || mm->is_command_or_control_pressed()) { | ||||
| 						new_pos.x = Math::snapped(new_pos.x, 1.0 / snap_count); | ||||
| 						new_pos.y = Math::snapped(new_pos.y - curve->get_min_value(), curve->get_range() / snap_count) + curve->get_min_value(); | ||||
| 					} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 ajreckof
						ajreckof