Skip to content
This repository has been archived by the owner on Jun 27, 2018. It is now read-only.

Commit

Permalink
Add keybinding for evaluating code.
Browse files Browse the repository at this point in the history
  • Loading branch information
nightwing committed Oct 9, 2014
1 parent 967211c commit 08e36c5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions static/web.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,12 @@ addEventListener("DOMContentLoaded", function() {
evaluate(result, session.getValue(), version.options[version.selectedIndex].text,
optimize.options[optimize.selectedIndex].value);
};

editor.commands.addCommand({
name: "evaluate",
exec: evaluateButton.onclick,
bindKey: {win: "Ctrl-Enter", mac: "Ctrl-Enter"}
});

asmButton.onclick = function() {
compile("asm", result, session.getValue(), version.options[version.selectedIndex].text,
Expand Down

0 comments on commit 08e36c5

Please sign in to comment.