mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-29 00:26:10 +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();
|
this.viewport.toggleFlip();
|
||||||
event.preventDefault = true;
|
event.preventDefault = true;
|
||||||
break;
|
break;
|
||||||
|
case 106: //j - previous image source
|
||||||
|
onPrevious.bind(this)();
|
||||||
|
break;
|
||||||
|
case 107: //k - next image source
|
||||||
|
onNext.bind(this)();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
// console.log( 'navigator keycode %s', event.keyCode );
|
// console.log( 'navigator keycode %s', event.keyCode );
|
||||||
event.preventDefault = false;
|
event.preventDefault = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user