Merge remote-tracking branch 'origin/sub_laptop_8' into main_laptop_1

This commit is contained in:
2026-10-16 00:12:14 +09:00
13 changed files with 438 additions and 18 deletions
@@ -38,6 +38,7 @@ import { cadCtrlCommand, ctrlShortcut } from './input-shortcut.ts';
import { wheelZoom } from './input-wheel.ts';
import { isObjectSnap, noteShift, snapAt } from './ortho.ts';
import { isWaitingForSecondSelectPoint, selectingActor } from './selecting.ts';
import { openSnapMenu } from './snap-menu.ts';
import { isMiddleDouble, zoomExtents } from './zoom-prompt.ts';
import { attachTouch } from './input-touch.ts';
import { NUMBER_REGEXP, type PointTextEvent } from './input-patterns.ts';
@@ -168,10 +169,14 @@ export class InputController {
public handleMouseUp(evt: MouseEvent) {
if (evt.button === MouseButton.Right) {
// 우클릭 = Enter(명령 중 확정 · 쉴 때 반복)
// 우클릭 = Enter(명령 중 확정 · 쉴 때 반복) · Shift+우클릭 = 점 물음에서 한 번 스냅 메뉴
evt.preventDefault();
evt.stopPropagation();
this.handleEnterKey(true);
if (evt.shiftKey && currentPrompt().kind === 'point') {
openSnapMenu(evt.clientX, evt.clientY, (name) => this.submitText(name));
} else {
this.handleEnterKey(true);
}
}
// If ancestor parent exist with class .controls => ignore clicks, since a button was clicked instead of the canvas