Skip to content

Commit

Permalink
chagne shortcut to Ctrl+E to run plugin; fix reload bug for window pl…
Browse files Browse the repository at this point in the history
…ugin
  • Loading branch information
oeway committed Apr 24, 2019
1 parent 75c4207 commit 7320055
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web/src/components/PluginEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div class="md-toolbar-section-start">
<md-button @click="run()" class="md-icon-button">
<md-icon>play_arrow</md-icon>
<md-tooltip>Run this plugin (Ctrl+R)</md-tooltip>
<md-tooltip>Run this plugin (Ctrl+E)</md-tooltip>
</md-button>
<md-button @click="save()" class="md-icon-button">
<md-icon>save</md-icon>
Expand Down Expand Up @@ -124,7 +124,7 @@ export default {
this.editor.addCommand( window.monaco.KeyMod.CtrlCmd | window.monaco.KeyCode.KEY_S, ()=>{
this.save()
});
this.editor.addCommand( window.monaco.KeyMod.CtrlCmd | window.monaco.KeyCode.KEY_R, ()=>{
this.editor.addCommand( window.monaco.KeyMod.CtrlCmd | window.monaco.KeyCode.KEY_E, ()=>{
this.run()
});
},
Expand Down Expand Up @@ -171,7 +171,7 @@ export default {
}
if(this.window_plugin_id){
const node = document.getElementById('iframe_' + this.window_plugin_id)
node.parentNode.removeChild(node);
if(node) node.parentNode.removeChild(node);
}
const w = await plugin.api.run({id: this.window_plugin_id, config: config, data: {}})
if(plugin.config && plugin.config.type === 'window'){
Expand Down

0 comments on commit 7320055

Please sign in to comment.