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:
Timur Khazamov 2020-02-16 17:00:45 +01:00 committed by GitHub
parent 2d22ffda49
commit ad72946131
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 34 additions and 0 deletions

View file

@ -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);