Add keys to change image source in sequence mode

Add the keys 'j' and 'k' to change the image source in the viewer.
- 'j': previous source
- 'k': next source
This commit is contained in:
Luis Nieto 2021-07-08 23:43:38 -05:00
parent eff2ef6f1b
commit 5889f34695

View File

@ -2782,6 +2782,12 @@ function onCanvasKeyPress( event ) {
this.viewport.toggleFlip();
event.preventDefault = true;
break;
case 106: //j - previous image source
onPrevious.bind(this)();
break;
case 107: //k - next image source
onNext.bind(this)();
break;
default:
// console.log( 'navigator keycode %s', event.keyCode );
event.preventDefault = false;