compile keyboard shortcut updated

pull/2265/head
Aniket-Engg 3 years ago committed by yann300
parent 09563840cf
commit 920f7ca6ff
  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