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:
parent
fb3b998cfd
commit
0f37d01b2d
1 changed files with 2 additions and 1 deletions
|
|
@ -387,7 +387,7 @@
|
||||||
</div>
|
</div>
|
||||||
</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/timecode.js"></script>
|
||||||
<script src="js/timeline.js"></script>
|
<script src="js/timeline.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
|
@ -894,6 +894,7 @@ function updateToolbarActive(tool) {
|
||||||
document.getElementById(map[k]).classList.remove('active');
|
document.getElementById(map[k]).classList.remove('active');
|
||||||
});
|
});
|
||||||
if (map[tool]) document.getElementById(map[tool]).classList.add('active');
|
if (map[tool]) document.getElementById(map[tool]).classList.add('active');
|
||||||
|
Timeline.setTool(tool);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ════════════════════════════════════════════════════════════════
|
// ════════════════════════════════════════════════════════════════
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue