GraphiteEditor/Graphite

Line tool needs Ctrl to lock angle only after drag has begun

开放

#3,771 创建于 2026年2月16日

 (2 条评论) (0 个反应) (0 位负责人)Rust (1,176 个派生)batch import
Good First Issue

仓库指标

星标
 (25,662 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Ctrl is the shortcut for the Line tool to lock the current angle. But currently, it takes effect if Ctrl is held before the click and drag for drawing a new line, which is not desired, because Ctrl is also used to allow drawing a new line snapped to the endpoint of an existing line (rather than dragging around that endpoint). Ctrl should only lock the line's angle if it is pressed after the dragging is already occurring, whether that's for a new line or for dragging the endpoint of an existing line.

贡献者指南