mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Shortcuts to zoom in/out and to reset zoom (#770)
* Shortcuts to zoom in/out and to reset zoom * add support for numerical keys * Fixed Firefox compatibility Co-authored-by: David Luzar <luzar.david@gmail.com>
This commit is contained in:
parent
2d22ffda49
commit
ad72946131
3 changed files with 34 additions and 0 deletions
|
@ -81,6 +81,7 @@ import {
|
|||
actionClearCanvas,
|
||||
actionZoomIn,
|
||||
actionZoomOut,
|
||||
actionResetZoom,
|
||||
actionChangeProjectName,
|
||||
actionChangeExportBackground,
|
||||
actionLoadScene,
|
||||
|
@ -525,6 +526,7 @@ export class App extends React.Component<any, AppState> {
|
|||
this.actionManager.registerAction(actionClearCanvas);
|
||||
this.actionManager.registerAction(actionZoomIn);
|
||||
this.actionManager.registerAction(actionZoomOut);
|
||||
this.actionManager.registerAction(actionResetZoom);
|
||||
|
||||
this.actionManager.registerAction(actionChangeProjectName);
|
||||
this.actionManager.registerAction(actionChangeExportBackground);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue