Skip to content

Commit 14f10fd

Browse files
committed
deleted backspace/delete
1 parent a0d45d5 commit 14f10fd

File tree

2 files changed

+15
-14
lines changed

2 files changed

+15
-14
lines changed

src/components/Canvas.vue

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -289,20 +289,20 @@ export default {
289289
},
290290
mounted() {
291291
// when component is mounted, add ability to delete
292-
window.addEventListener("keyup", (event) => {
293-
if (event.key === "Backspace") {
294-
if (this.activeComponent !== '' && this.noteModalOpen === false) {
295-
this.$store.dispatch("deleteActiveComponent");
296-
}
297-
}
298-
});
299-
window.addEventListener("keyup", (event) => {
300-
if (event.key === "Delete") {
301-
if (this.activeComponent !== '' && this.noteModalOpen === false) {
302-
this.$store.dispatch("deleteActiveComponent");
303-
}
304-
}
305-
});
292+
// window.addEventListener("keyup", (event) => {
293+
// if (event.key === "Backspace") {
294+
// if (this.activeComponent !== '' && this.noteModalOpen === false) {
295+
// this.$store.dispatch("deleteActiveComponent");
296+
// }
297+
// }
298+
// });
299+
// window.addEventListener("keyup", (event) => {
300+
// if (event.key === "Delete") {
301+
// if (this.activeComponent !== '' && this.noteModalOpen === false) {
302+
// this.$store.dispatch("deleteActiveComponent");
303+
// }
304+
// }
305+
// });
306306
// listener for the copy
307307
window.addEventListener("copy", () => {
308308
// if there is an activeComponent, copy info to state using dispatch

src/components/left-sidebar/ComponentTab/AttributesSubMenu.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ export default {
9696
routeArray: this.routes[this.activeRoute],
9797
activeComponentData: this.activeComponentData,
9898
})
99+
this.attributeText = "";
99100
},
100101
101102
changeAttribute(attribute) {

0 commit comments

Comments
 (0)