Unverified Commit 9dec4e8a authored by yann300's avatar yann300 Committed by GitHub

Merge pull request #1339 from greg-shyft/shyft-greg/recompile

Override control-s and command-s to auto-recompile
parents 67a412b9 193bae60
...@@ -235,6 +235,15 @@ Please make a backup of your contracts and start using http://remix.ethereum.org ...@@ -235,6 +235,15 @@ 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) {
// ctrl+s or command+s
if ((e.metaKey || e.ctrlKey) && e.keyCode === 83) {
e.preventDefault()
runCompiler()
}
})
function importExternal (url, cb) { function importExternal (url, cb) {
self._components.compilerImport.import(url, self._components.compilerImport.import(url,
(loadingMsg) => { (loadingMsg) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment