Commit 5de0770a authored by jboyson's avatar jboyson

Add keyboard support

parent 8a7baa28
...@@ -217,6 +217,7 @@ export default { ...@@ -217,6 +217,7 @@ export default {
> >
<div <div
role="button" role="button"
tabindex="0"
:draggable="glFeatures.dragCommentSelection" :draggable="glFeatures.dragCommentSelection"
type="button" type="button"
class="add-diff-note unified-diff-components-diff-note-button note-button js-add-diff-note-button qa-diff-comment" class="add-diff-note unified-diff-components-diff-note-button note-button js-add-diff-note-button qa-diff-comment"
...@@ -224,6 +225,8 @@ export default { ...@@ -224,6 +225,8 @@ export default {
:class="{ 'gl-cursor-grab': dragging }" :class="{ 'gl-cursor-grab': dragging }"
:disabled="line.left.commentsDisabled" :disabled="line.left.commentsDisabled"
@click="handleCommentButton(line.left)" @click="handleCommentButton(line.left)"
@keydown.enter="handleCommentButton(line.left)"
@keydown.space="handleCommentButton(line.left)"
@dragstart="onDragStart({ ...line.left, index })" @dragstart="onDragStart({ ...line.left, index })"
></div> ></div>
</span> </span>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment