feat(chart): Shift+Click adds horizontal line at clicked y-coordinate
H key and toolbar button use hover-or-last-close, so mouse users had no way to drop a line at an arbitrary price they hadn't hovered. Shift+Click reads the click's y via candle.coordinateToPrice — direct positional control. - Plain click stays as native chart interaction (crosshair/drag) - Only intercepts when shiftKey held; preventDefault to avoid text selection - Honors the same 10-line cap as the H key / button - ShortcutsHelp adds "Shift+클릭" entry next to H so it's discoverable
This commit is contained in:
@@ -23,6 +23,7 @@ const SHORTCUTS: Shortcut[] = [
|
||||
{ scope: "전역", keys: ["?"], label: "이 도움말 열기 / 닫기" },
|
||||
{ scope: "종목 페이지", keys: ["F"], label: "차트 전체화면 토글" },
|
||||
{ scope: "종목 페이지", keys: ["H"], label: "현재 가격에 수평선 추가" },
|
||||
{ scope: "종목 페이지", keys: ["Shift", "클릭"], label: "차트 위 클릭 위치에 수평선 추가" },
|
||||
{ scope: "종목 페이지", keys: ["←", "→"], label: "기간 탭 이전 / 다음" },
|
||||
{ scope: "종목 페이지", keys: ["S"], label: "관심종목 추가 / 제거" },
|
||||
{ scope: "검색 팝오버", keys: ["↑", "↓"], label: "결과 이동" },
|
||||
|
||||
Reference in New Issue
Block a user