Panning with space key (#579)

* Panning with space key

* prevent panning when selecting/dragging & add more checks

* Fix changing current tool via shortcut while panning

* Fix order of statements

* teardown on blur event

* Refactor cursor setting

Co-authored-by: David Luzar <luzar.david@gmail.com>
This commit is contained in:
Guillermo Peralta Scura 2020-01-30 17:08:59 -03:00 committed by GitHub
parent 4ad38e317e
commit 35750d8d09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 70 additions and 12 deletions

View file

@ -13,6 +13,7 @@ export const KEYS = {
: "ctrlKey";
},
TAB: "Tab",
SPACE: " ",
};
export function isArrowKey(keyCode: string) {