mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 06:36:11 +03:00
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:
parent
eff2ef6f1b
commit
5889f34695
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user