diff --git a/apps/remix-ide/src/app/tabs/intelligent-script-executor.ts b/apps/remix-ide/src/app/tabs/intelligent-script-executor.ts index c524b36137..1448c2cc52 100644 --- a/apps/remix-ide/src/app/tabs/intelligent-script-executor.ts +++ b/apps/remix-ide/src/app/tabs/intelligent-script-executor.ts @@ -21,7 +21,7 @@ export class IntelligentScriptExecutor extends Plugin { this.executionListener = async (e) => { // ctrl+e or command+e const file = await this.call('fileManager', 'file') - if ((e.metaKey || e.ctrlKey) && e.keyCode === 69 && file !== '') { + if ((e.metaKey || e.ctrlKey) && e.shiftKey && e.keyCode === 83 && file !== '') { if (file.endsWith('.sol')) { e.preventDefault() this.targetFileName = file diff --git a/apps/solidity-compiler/src/app/compiler-api.ts b/apps/solidity-compiler/src/app/compiler-api.ts index 7d5188be6b..64747b3c51 100644 --- a/apps/solidity-compiler/src/app/compiler-api.ts +++ b/apps/solidity-compiler/src/app/compiler-api.ts @@ -321,7 +321,7 @@ export const CompilerApiMixin = (Base) => class extends Base { // Run the compiler instead of trying to save the website this.data.eventHandlers.onKeyDown = async (e) => { // ctrl+s or command+s - if ((e.metaKey || e.ctrlKey) && e.keyCode === 83 && this.currentFile !== '') { + if ((e.metaKey || e.ctrlKey) && !e.shiftKey && e.keyCode === 83 && this.currentFile !== '') { e.preventDefault() this.compileTabLogic.runCompiler(await this.getAppParameter('hardhat-compilation')) }