update keybinding

pull/2244/head^2
yann300 3 years ago
parent 601ec3e3f5
commit d19a55d4f1
  1. 2
      apps/remix-ide/src/app/tabs/intelligent-script-executor.ts
  2. 2
      apps/solidity-compiler/src/app/compiler-api.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

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

Loading…
Cancel
Save