Skip to content
Snippets Groups Projects
Commit 3e5e9db2 authored by Ron Lucke's avatar Ron Lucke Committed by David Siegfried
Browse files

fix #1918

Closes #1918

Merge request studip/studip!1840
parent 0b1718ee
No related branches found
No related tags found
No related merge requests found
......@@ -54,7 +54,7 @@
:class="{ 'cw-sortable-handle-dragging': isDragging }"
class="cw-sortable-handle"
tabindex="0"
role="option"
role="button"
aria-describedby="operation"
:ref="'sortableHandle' + block.id"
@keydown="keyHandler($event, block.id, index)"
......@@ -290,7 +290,7 @@ export default {
case 27: // esc
this.abortKeyboardSorting(blockId, sectionIndex);
break;
case 32: // space
case 13: // enter
e.preventDefault();
if (this.keyboardSelected) {
this.storeKeyboardSorting(blockId, sectionIndex);
......
......@@ -42,7 +42,7 @@
:class="{ 'cw-sortable-handle-dragging': isDragging }"
class="cw-sortable-handle"
tabindex="0"
role="option"
role="button"
aria-describedby="operation"
:ref="'sortableHandle' + block.id"
@keydown="keyHandler($event, block.id)"
......@@ -186,7 +186,7 @@ export default {
case 27: // esc
this.abortKeyboardSorting(blockId);
break;
case 32: // space
case 13: // enter
e.preventDefault();
if (this.keyboardSelected) {
this.storeKeyboardSorting(blockId);
......
......@@ -189,7 +189,7 @@
:class="{ 'cw-sortable-handle-dragging': isDragging }"
class="cw-sortable-handle"
tabindex="0"
role="option"
role="button"
aria-describedby="operation"
:ref="'sortableHandle' + container.id"
@keydown="keyHandler($event, container.id)"
......@@ -1626,7 +1626,7 @@ export default {
case 27: // esc
this.abortKeyboardSorting(containerId);
break;
case 32: // space
case 13: // enter
e.preventDefault();
if (this.keyboardSelected) {
this.storeKeyboardSorting(containerId);
......
......@@ -55,7 +55,7 @@
:class="{ 'cw-sortable-handle-dragging': isDragging }"
class="cw-sortable-handle"
tabindex="0"
role="option"
role="button"
aria-describedby="operation"
:ref="'sortableHandle' + block.id"
@keydown="keyHandler($event, block.id, index)"
......@@ -292,7 +292,7 @@ export default {
case 27: // esc
this.abortKeyboardSorting(blockId, sectionIndex);
break;
case 32: // space
case 13: // enter
e.preventDefault();
if (this.keyboardSelected) {
this.storeKeyboardSorting(blockId, sectionIndex);
......
......@@ -10,6 +10,7 @@
:tabindex="0"
aria-describedby="operation"
ref="sortableHandle"
role="button"
@keydown="handleKeyEvent"
>
</span>
......@@ -339,7 +340,7 @@ export default {
},
handleKeyEvent(e) {
switch (e.keyCode) {
case 32: // space
case 13: // enter
e.preventDefault();
if (this.keyboardSelected) {
this.storeKeyboardSorting();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment