fix(editor): keyboard tool shortcuts now actually switch the active tool

V/C/H key shortcuts called updateToolbarActive() which only updated button
visual state — Timeline.setTool() was never called so the cursor stayed on
the previous tool. Fix by calling Timeline.setTool() inside updateToolbarActive.

Also bump api.js reference to ?v=6 to match other pages.
This commit is contained in:
Zac Gaetano 2026-05-18 23:53:38 -04:00
parent fb3b998cfd
commit 0f37d01b2d

View file

@ -387,7 +387,7 @@
</div>
</div>
<script src="js/api.js"></script>
<script src="js/api.js?v=6"></script>
<script src="js/timecode.js"></script>
<script src="js/timeline.js"></script>
<script>
@ -894,6 +894,7 @@ function updateToolbarActive(tool) {
document.getElementById(map[k]).classList.remove('active');
});
if (map[tool]) document.getElementById(map[tool]).classList.add('active');
Timeline.setTool(tool);
}
// ════════════════════════════════════════════════════════════════