Skip to content

Commit

Permalink
Close #209: Hotkey for layer creation
Browse files Browse the repository at this point in the history
Cmd/ctrl + n for layer creation. Might have to turn off browser
shortcuts if users want to use cmd + n for layer creation and not for
new window.
  • Loading branch information
PotassiumK committed Aug 14, 2017
1 parent 42d5c81 commit 5feab35
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/pixel.js
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,12 @@ export default class PixelPlugin
}
}
break;
case "n":
if (e.ctrlKey || e.metaKey)
{
this.createLayer(); // Cmd + N
}
break;
case "z":
if ((e.ctrlKey || e.metaKey) && e.shiftKey) // Cmd + Shift + Z
this.redoAction();
Expand Down

0 comments on commit 5feab35

Please sign in to comment.