|
@@ -101,6 +101,7 @@ export class TextureCanvasManager {
|
|
|
|
|
|
private static SELECT_ALL_KEY = 'KeyA';
|
|
|
private static SAVE_KEY ='KeyS';
|
|
|
+ private static RESET_KEY = 'KeyR';
|
|
|
private static DESELECT_KEY = 'Escape'
|
|
|
|
|
|
private _tool : Nullable<ITool>;
|
|
@@ -215,6 +216,10 @@ export class TextureCanvasManager {
|
|
|
this.saveTexture();
|
|
|
evt.preventDefault();
|
|
|
}
|
|
|
+ if (evt.code === TextureCanvasManager.RESET_KEY && evt.ctrlKey) {
|
|
|
+ this.reset();
|
|
|
+ evt.preventDefault();
|
|
|
+ }
|
|
|
if (evt.code === TextureCanvasManager.DESELECT_KEY) {
|
|
|
this._setMetadata({
|
|
|
select: {
|