ui: keep some keycodes around for zoom kb ctrls

This commit is contained in:
jean-emmanuel 2025-02-23 18:47:43 +01:00
parent 1286acc2a3
commit 60655dc896

View file

@ -44,11 +44,11 @@ class Zoom extends EventEmitter {
this.setGlobalZoom(INITIALZOOM)
this.setLocalZoom(1)
}
else if (event.key == '+' || event.key == '=') {
else if (event.key == '+' || event.key == '=' || event.keyCode === 107) {
event.preventDefault()
this.setGlobalZoom(PXSCALE + 0.1)
}
else if (event.key == '-') {
else if (event.key == '-' || event.keyCode === 109) {
event.preventDefault()
this.setGlobalZoom(PXSCALE - 0.1)
}