bind zoom in shortcut also to Ctrl+= (like browsers do)"
This commit is contained in:
parent
8fa430846b
commit
d805fa95e4
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue