slight keybind change

This commit is contained in:
Mnem42 2025-10-17 15:55:15 +01:00 committed by GitHub
parent 5183a9b0b3
commit dc29ee6a68
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -2,14 +2,14 @@
(() => {
let canvas_div = document.getElementById("canvasDiv")
keybinds["9"] = () => handle_zoom("in")
keybinds["0"] = () => handle_zoom("out")
keybinds["0"] = () => handle_zoom("in")
keybinds["9"] = () => handle_zoom("out")
const controls_table = document.getElementById("controlsTable").lastElementChild
controls_table.insertAdjacentHTML("beforeBegin",`
<tr>
<td>Zoom in/out</td>
<td><kbd>9</kbd>/<kbd>0</kbd>
<td><kbd>0</kbd>/<kbd>9</kbd>
</tr>
`)