Fixed Knob arrow key support

pull/2809/head
Tuğçe Küçükoğlu 2022-07-27 13:02:50 +03:00
parent 97e4bf8fd6
commit 6409ea81c5
2 changed files with 4 additions and 4 deletions

View File

@ -168,14 +168,14 @@ export default {
onKeyDown(event) {
if (!this.disabled && !this.readonly) {
switch (event.code) {
case 'ArrowLeft':
case 'ArrowRight':
case 'ArrowUp': {
event.preventDefault();
this.updateModelValue(this.modelValue + 1);
break;
}
case 'ArrowRight':
case 'ArrowLeft':
case 'ArrowDown': {
event.preventDefault();
this.updateModelValue(this.modelValue - 1);

View File

@ -241,7 +241,7 @@ data() {
<td>
<span class="inline-flex flex-column">
<i class="mb-1">left arrow</i>
<i>up arrow</i>
<i>down arrow</i>
</span>
</td>
<td>Decrements the value.</td>
@ -250,7 +250,7 @@ data() {
<td>
<span class="inline-flex flex-column">
<i class="mb-1">right arrow</i>
<i>down arrow</i>
<i>up arrow</i>
</span>
</td>
<td>Increments the value.</td>