compile keyboard shortcut updated

pull/5370/head
Aniket-Engg 3 years ago committed by yann300
parent 8df06ad3b7
commit 9b0fdc4c84
  1. 3
      apps/solidity-compiler/src/app/compiler-api.ts

@ -328,7 +328,8 @@ export const CompilerApiMixin = (Base) => class extends Base {
// ctrl+s or command+s
if ((e.metaKey || e.ctrlKey) && !e.shiftKey && e.keyCode === 83 && this.currentFile !== '') {
e.preventDefault()
this.compileTabLogic.runCompiler(await this.getAppParameter('hardhat-compilation'))
if(await this.getAppParameter('hardhat-compilation')) this.compileTabLogic.runCompiler('hardhat')
else if(await this.getAppParameter('truffle-compilation')) this.compileTabLogic.runCompiler('truffle')
}
}
window.document.addEventListener('keydown', this.data.eventHandlers.onKeyDown)

Loading…
Cancel
Save