add shortcuts to undo/redo
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
This commit is contained in:
parent
1d6d2c1978
commit
fb0c2f2443
2 changed files with 9 additions and 0 deletions
|
@ -190,6 +190,7 @@
|
||||||
<script src="js/commands.js" type="text/javascript"></script>
|
<script src="js/commands.js" type="text/javascript"></script>
|
||||||
<script src="js/index.js" type="text/javascript"></script>
|
<script src="js/index.js" type="text/javascript"></script>
|
||||||
<script src="js/settingsbar.js" type="text/javascript"></script>
|
<script src="js/settingsbar.js" type="text/javascript"></script>
|
||||||
|
<script src="js/shortcuts.js" type="text/javascript"></script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
8
js/shortcuts.js
Normal file
8
js/shortcuts.js
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
// Listen for shortcuts
|
||||||
|
keyboard.onShortcut({ctrl: true, key: "KeyZ"}, () => {
|
||||||
|
commands.undo();
|
||||||
|
});
|
||||||
|
|
||||||
|
keyboard.onShortcut({ctrl: true, key: "KeyY"}, () => {
|
||||||
|
commands.redo();
|
||||||
|
});
|
Loading…
Reference in a new issue