Commit 5de0770a authored by jboyson's avatar jboyson

Add keyboard support

parent 8a7baa28
......@@ -217,6 +217,7 @@ export default {
>
<div
role="button"
tabindex="0"
:draggable="glFeatures.dragCommentSelection"
type="button"
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 {
:class="{ 'gl-cursor-grab': dragging }"
:disabled="line.left.commentsDisabled"
@click="handleCommentButton(line.left)"
@keydown.enter="handleCommentButton(line.left)"
@keydown.space="handleCommentButton(line.left)"
@dragstart="onDragStart({ ...line.left, index })"
></div>
</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