Skip to content

Commit

Permalink
Merge pull request #69 from MattApril/master
Browse files Browse the repository at this point in the history
Made picture-input keyboard accessible
  • Loading branch information
alessiomaffeis authored Jun 28, 2018
2 parents 1694fa8 + f1c10a9 commit 33ededc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions PictureInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
:style="{maxWidth: previewWidth + 'px', height: previewHeight + 'px', borderRadius: radius + '%'}">
<canvas ref="previewCanvas"
class="picture-preview"
tabindex="0"
:class="computedClasses"
@drag.stop.prevent=""
@dragover.stop.prevent=""
Expand All @@ -15,6 +16,7 @@
@dragleave.stop.prevent="onDragLeave"
@drop.stop.prevent="onFileDrop"
@click.prevent="onClick"
@keyup.enter="onClick"
:style="{height: previewHeight + 'px', zIndex: zIndex + 1 }">
</canvas>
<div v-if="!imageSelected && !plain"
Expand Down

0 comments on commit 33ededc

Please sign in to comment.