Selection with keycode down end arrow

Problem: Active key down

Saola Animate version: 2.70

OS: Windows 10


How do you activate the up and down arrow to scroll selection in a menu or slider?

For example it is here


You can get the keycode in a keydown event from e parameter:

function onKeyDown(doc, e) {
  var keyCode = e.domEvent.keyCode;
  // console.log(keyCode);
  if (keyCode == 39) {  // right arrow
    // do something
  } else if (keyCode == 37) { // left arrow
    // do something