Skip to content

Commit

Permalink
fix: F9 key shortcut refresh all query tabs instead of just selected one
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio286 committed Oct 27, 2020
1 parent 2e49d86 commit c9ba2e5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/main/libs/clients/MySQLClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,6 @@ export class MySQLClient extends AntaresCore {
};
}) : [];

// TODO: move here fields and keys requests
if (args.details) {
let cachedTable;

Expand Down
6 changes: 4 additions & 2 deletions src/renderer/components/WorkspaceQueryTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,10 @@ export default {
},
onKey (e) {
e.stopPropagation();
if (e.key === 'F9')
this.runQuery(this.query);
if (this.tabUid === this.workspace.selected_tab) {
if (e.key === 'F9')
this.runQuery(this.query);
}
}
}
};
Expand Down
6 changes: 4 additions & 2 deletions src/renderer/components/WorkspaceTableTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,10 @@ export default {
},
onKey (e) {
e.stopPropagation();
if (e.key === 'F5')
this.reloadTable();
if (this.workspace.selected_tab === 'data') {
if (e.key === 'F5')
this.reloadTable();
}
},
setRefreshInterval () {
if (this.refreshInterval)
Expand Down

0 comments on commit c9ba2e5

Please sign in to comment.