1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-06-05 21:59:22 +02:00

feat: context menu option to duplicate connections

This commit is contained in:
2021-07-09 11:18:40 +02:00
parent c6897af22d
commit 439356a019
4 changed files with 24 additions and 10 deletions

View File

@ -401,15 +401,11 @@ export default {
},
created () {
this.setDefaults();
window.addEventListener('keydown', this.onKey);
setTimeout(() => {
this.$refs.firstInput.focus();
if (this.$refs.firstInput) this.$refs.firstInput.focus();
}, 20);
},
beforeDestroy () {
window.removeEventListener('keydown', this.onKey);
},
methods: {
...mapActions({
addConnection: 'connections/addConnection',