From 8c58c8eeab7e287460c32594c02a5c66f06bf4c2 Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 4 Apr 2022 16:47:44 +0200 Subject: [PATCH] update keybinding --- apps/remix-ide/src/app/tabs/intelligent-script-executor.ts | 2 +- apps/solidity-compiler/src/app/compiler-api.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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')) }