ctrl+enter should work only on tab detail

This commit is contained in:
zadam
2019-05-19 16:56:16 +02:00
parent ecfba95841
commit ddb99a0917
4 changed files with 13 additions and 7 deletions

View File

@@ -16,7 +16,7 @@ class NoteDetailCode {
this.$component = ctx.$tabContent.find('.note-detail-code');
this.$executeScriptButton = ctx.$tabContent.find(".execute-script-button");
utils.bindShortcut("ctrl+return", () => this.executeCurrentNote());
utils.bindElShortcut(ctx.$tabContent, "ctrl+return", () => this.executeCurrentNote());
this.$executeScriptButton.click(() => this.executeCurrentNote());
}