Hi,
I am using the option useKeyboard: true that allow me to change the slider tooltip right and left by using key up down or key right left.
Now, I want to disable the key event up and down and make vue slider change only when i press key right or left.
I think the code that must be changed is:
switch (e.keyCode) {
case KEY_CODE.UP:
return i => (params.direction === 'ttb' ? i - 1 : i + 1)
case KEY_CODE.RIGHT:
return i => (params.direction === 'rtl' ? i - 1 : i + 1)
case KEY_CODE.DOWN:
return i => (params.direction === 'ttb' ? i + 1 : i - 1)
case KEY_CODE.LEFT:
return i => (params.direction === 'rtl' ? i + 1 : i - 1)
}
Hi, I am using the option useKeyboard: true that allow me to change the slider tooltip right and left by using key up down or key right left.
Now, I want to disable the key event up and down and make vue slider change only when i press key right or left.
I think the code that must be changed is:
Thanks,