Skip to content

Commit

Permalink
feat: ctrl/cmd+space to open all connections modal
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio286 committed Jul 4, 2022
1 parent ec5ab73 commit a9a4344
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions src/renderer/App.vue
Expand Up @@ -73,6 +73,15 @@ document.addEventListener('DOMContentLoaded', () => {
}, 1000);
});
window.addEventListener('keypress', (e: KeyboardEvent) => {
if (e.ctrlKey || e.metaKey) {
if (e.code === 'Space') {
isAllConnectionsModal.value = true;
e.stopPropagation();
}
}
});
onMounted(() => {
ipcRenderer.send('check-for-updates');
checkVersionUpdate();
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/components/TheSettingBar.vue
Expand Up @@ -55,7 +55,7 @@
@mouseover.self="tooltipPosition"
>
<i class="settingbar-element-icon mdi mdi-24px mdi-dots-horizontal text-light" />
<span class="ex-tooltip-content">{{ $t('message.allConnections') }}</span>
<span class="ex-tooltip-content">{{ $t('message.allConnections') }} (CTRL+Space)</span>
</li>
<li
class="settingbar-element btn btn-link ex-tooltip"
Expand Down

0 comments on commit a9a4344

Please sign in to comment.