From d0cbafdfbedc08f751661e24732f8ce957927fc2 Mon Sep 17 00:00:00 2001 From: Cristi Constantin Date: Wed, 4 Dec 2019 20:54:26 +0000 Subject: [PATCH] Added Undo, Redo and Select All in menu --- desktop/sources/scripts/client.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/desktop/sources/scripts/client.js b/desktop/sources/scripts/client.js index 39782c2..3da2acd 100644 --- a/desktop/sources/scripts/client.js +++ b/desktop/sources/scripts/client.js @@ -43,9 +43,12 @@ function Client () { this.acels.set('File', 'Export Image', 'CmdOrCtrl+E', () => { this.source.download('ronin', 'png', this.surface.el.toDataURL('image/png', 1.0), 'image/png') }) this.acels.set('File', 'Open', 'CmdOrCtrl+O', () => { this.source.open('lisp', this.whenOpen) }) + this.acels.add('Edit', 'undo') + this.acels.add('Edit', 'redo') this.acels.add('Edit', 'cut') this.acels.add('Edit', 'copy') this.acels.add('Edit', 'paste') + this.acels.add('Edit', 'selectAll') this.acels.set('View', 'Toggle Guides', 'CmdOrCtrl+Shift+H', () => { this.surface.toggleGuides() }) this.acels.set('View', 'Toggle Commander', 'CmdOrCtrl+K', () => { this.commander.toggle() })