Fixed Knob arrow key support
parent
97e4bf8fd6
commit
6409ea81c5
|
@ -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);
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue