|
|
|
@ -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) |
|
|
|
|