Skip to content

Commit

Permalink
fix: list item interactions on share
Browse files Browse the repository at this point in the history
  • Loading branch information
ramiresviana committed Mar 25, 2021
1 parent c0d85f3 commit 87f1881
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
6 changes: 6 additions & 0 deletions frontend/src/components/prompts/Prompts.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ export default {
let prompt = this.$refs.currentComponent;
// Esc!
if (event.keyCode === 27) {
event.stopImmediatePropagation();
this.$store.commit("closeHovers");
}
// Enter
if (event.keyCode == 13) {
switch (this.show) {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/css/_share.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
}

.share__box__info {
flex: 1 1 auto;
flex: 1 1 18em;
}

.share__box__element {
Expand Down
1 change: 1 addition & 0 deletions frontend/src/css/listing.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
transition: .1s ease background, .1s ease opacity;
align-items: center;
cursor: pointer;
user-select: none;
}

#listing .item div:last-of-type {
Expand Down
9 changes: 0 additions & 9 deletions frontend/src/views/Files.vue
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,6 @@ export default {
}
},
keyEvent(event) {
if (this.show !== null) {
// Esc!
if (event.keyCode === 27) {
this.$store.commit("closeHovers");
}
return;
}
// F1!
if (event.keyCode === 112) {
event.preventDefault();
Expand Down

0 comments on commit 87f1881

Please sign in to comment.