SPB Git forge

spb/hfmarketdata

Public

Open high-frequency market data platform — FirstRate full-history downloader, DuckDB/Parquet lake, open REST API and React docs platform (www.hfmarketdata.io)

127commits 1branches 0releases
24.7 MBsize
maindefault branch
11 days agolast push
JavaScript 53.7% Python 38.3% CSS 4.6% TypeScript 3.1%

web: charts — raccourcis de layout Alt+1…4 via e.code (macOS transforme Alt+chiffre en symbole)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Simon-Pierre Boucher committed 18 days ago (Sep 7, 2026) parent bc3cf30

1 changed file +2 −1

modified hfmarketdata/web/src/pages/charts/ChartsPage.jsx +2 −1
@@ -338,7 +338,8 @@ export default function ChartsPage() {
338 338 if (meta && e.key.toLowerCase() === 'y') { e.preventDefault(); v?.redo(); return }
339 339 if (meta && e.key.toLowerCase() === 'd') { if (selection) { e.preventDefault(); propsApi.onDuplicate(selection.id) } return }
340 340 if (meta) return
341 − if (e.altKey && LAYOUT_KEYS[Number(e.key) - 1]) { e.preventDefault(); setLayoutInternal(LAYOUT_KEYS[Number(e.key) - 1]); return }
341 + const digit = e.altKey ? /^Digit([1-4])$/.exec(e.code || '') : null // e.code: macOS turns Alt+digit into a symbol
342 + if (digit) { e.preventDefault(); setLayoutInternal(LAYOUT_KEYS[Number(digit[1]) - 1]); return }
342 343 if (e.altKey) return
343 344 if (e.key === '?' || (e.shiftKey && e.key === '/')) { e.preventDefault(); setShortcuts(o => !o); return }
344 345 if (e.shiftKey && e.key.toLowerCase() === 'r') { e.preventDefault(); a.toggleReplay(); return }
345 346