diff --git a/README.txt b/README.txt index 96ec4ad..1da749d 100644 --- a/README.txt +++ b/README.txt @@ -11,6 +11,22 @@ The library updates is constantly revealing new applications to Ronin, you can s - Demos: https://twitter.com/neauoire/status/1152481692193419267 - Community: https://hundredrabbits.itch.io/ronin/community +Controls + +∷ Toggle Menubar Tab +∷ Open Theme ^Shift+O +∷ Reset Theme ^Backspace +File New ^N +File Save ^S +File Export Image ^E +File Open ^O +View Toggle Guides ^Shift+H +View Toggle Commander ^K +View Expand Commander ^Shift+K +Project Run ^R +Project Re-Indent ^Shift+I +Project Clean Escape + Example ; clear screen diff --git a/index.html b/index.html index 191a08d..7455e5d 100644 --- a/index.html +++ b/index.html @@ -549,7 +549,6 @@ function Client () { this.acels.set('View', 'Toggle Commander', 'CmdOrCtrl+K', () => { this.commander.toggle() }) this.acels.set('View', 'Expand Commander', 'CmdOrCtrl+Shift+K', () => { this.commander.toggle(true) }) this.acels.set('Project', 'Run', 'CmdOrCtrl+R', () => { this.commander.run() }) - this.acels.set('Project', 'Reload Run', 'CmdOrCtrl+Shift+R', () => { this.source.revert(); this.commander.run() }) this.acels.set('Project', 'Re-Indent', 'CmdOrCtrl+Shift+I', () => { this.commander.reindent() }) this.acels.set('Project', 'Clean', 'Escape', () => { this.commander.cleanup() }) this.acels.route(this) diff --git a/scripts/client.js b/scripts/client.js index 86e9928..d9673d3 100644 --- a/scripts/client.js +++ b/scripts/client.js @@ -43,7 +43,7 @@ function Client () { this.acels.set('∷', 'Toggle Menubar', 'Tab', () => { this.acels.toggle() }) this.acels.set('∷', 'Open Theme', 'CmdOrCtrl+Shift+O', () => { this.theme.open() }) this.acels.set('∷', 'Reset Theme', 'CmdOrCtrl+Backspace', () => { this.theme.reset() }) - + this.acels.set('File', 'New', 'CmdOrCtrl+N', () => { this.source.new(); this.surface.clear(); this.commander.clear() }) this.acels.set('File', 'Save', 'CmdOrCtrl+S', () => { this.source.write('ronin', 'lisp', this.commander._input.value, 'text/plain') }) this.acels.set('File', 'Export Image', 'CmdOrCtrl+E', () => { this.source.write('ronin', 'png', this.surface.el.toDataURL('image/png', 1.0), 'image/png') }) @@ -61,7 +61,6 @@ function Client () { this.acels.set('View', 'Expand Commander', 'CmdOrCtrl+Shift+K', () => { this.commander.toggle(true) }) this.acels.set('Project', 'Run', 'CmdOrCtrl+R', () => { this.commander.run() }) - this.acels.set('Project', 'Reload Run', 'CmdOrCtrl+Shift+R', () => { this.source.revert(); this.commander.run() }) this.acels.set('Project', 'Re-Indent', 'CmdOrCtrl+Shift+I', () => { this.commander.reindent() }) this.acels.set('Project', 'Clean', 'Escape', () => { this.commander.cleanup() })