lint fixes
parent
dab6f44292
commit
a084cfa689
|
@ -92,7 +92,7 @@ export default {
|
||||||
|
|
||||||
switch (event.which) {
|
switch (event.which) {
|
||||||
//down arrow
|
//down arrow
|
||||||
case 40:
|
case 40: {
|
||||||
const nextRow = rowElement.nextElementSibling;
|
const nextRow = rowElement.nextElementSibling;
|
||||||
if (nextRow) {
|
if (nextRow) {
|
||||||
nextRow.focus();
|
nextRow.focus();
|
||||||
|
@ -100,9 +100,10 @@ export default {
|
||||||
|
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
//up arrow
|
//up arrow
|
||||||
case 38:
|
case 38: {
|
||||||
const previousRow = rowElement.previousElementSibling;
|
const previousRow = rowElement.previousElementSibling;
|
||||||
if (previousRow) {
|
if (previousRow) {
|
||||||
previousRow.focus();
|
previousRow.focus();
|
||||||
|
@ -110,21 +111,24 @@ export default {
|
||||||
|
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
//right-left arrows
|
//right-left arrows
|
||||||
case 37:
|
case 37:
|
||||||
case 39:
|
case 39: {
|
||||||
if (!this.leaf) {
|
if (!this.leaf) {
|
||||||
this.$emit('node-toggle', this.node);
|
this.$emit('node-toggle', this.node);
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
//enter
|
//enter
|
||||||
case 13:
|
case 13: {
|
||||||
this.onClick(event);
|
this.onClick(event);
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
//no op
|
//no op
|
||||||
|
|
Loading…
Reference in New Issue