bind zoom in shortcut also to Ctrl+= (like browsers do)"

This commit is contained in:
Joeri Exelmans 2025-11-14 11:01:15 +01:00
parent 8fa430846b
commit d805fa95e4

View file

@ -22,7 +22,7 @@ export const ZoomButtons = memo(function ZoomButtons({showKeys, zoom, setZoom}:
useEffect(() => {
const onKeyDown = (e: KeyboardEvent) => {
if (e.ctrlKey) {
if (e.key === "+") {
if (e.key === "+" || e.key === "=") {
e.preventDefault();
e.stopPropagation();
onZoomIn();