Override control-s and command-s to auto-recompile

pull/3094/head
greg 7 years ago
parent 0296945015
commit 28c3c65df6
  1. 8
      src/app.js

@ -235,6 +235,14 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
return 'Are you sure you want to leave?' return 'Are you sure you want to leave?'
} }
// Run the compiler instead of trying to save the website
$(window).keydown(function (e) {
if ((e.metaKey || e.ctrlKey) && e.keyCode == 83) { /*ctrl+s or command+s*/
e.preventDefault();
runCompiler();
}
});
function importExternal (url, cb) { function importExternal (url, cb) {
self._components.compilerImport.import(url, self._components.compilerImport.import(url,
(loadingMsg) => { (loadingMsg) => {

Loading…
Cancel
Save