mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 13:16:10 +03:00
Fixed bug preventing keypress events from firing on MouseTrackers with onKeyDown handlers
This commit is contained in:
parent
2bbfa97063
commit
d7d7fda4af
@ -2914,16 +2914,10 @@
|
|||||||
eventInfo.stopPropagation = false;
|
eventInfo.stopPropagation = false;
|
||||||
break;
|
break;
|
||||||
case 'keydown':
|
case 'keydown':
|
||||||
eventInfo.isStopable = true;
|
|
||||||
eventInfo.isCancelable = true;
|
|
||||||
eventInfo.preventDefault = !!tracker.keyDownHandler;
|
|
||||||
eventInfo.preventGesture = false;
|
|
||||||
eventInfo.stopPropagation = false;
|
|
||||||
break;
|
|
||||||
case 'keyup':
|
case 'keyup':
|
||||||
eventInfo.isStopable = true;
|
eventInfo.isStopable = true;
|
||||||
eventInfo.isCancelable = true;
|
eventInfo.isCancelable = true;
|
||||||
eventInfo.preventDefault = !!tracker.keyUpHandler;
|
eventInfo.preventDefault = false;
|
||||||
eventInfo.preventGesture = false;
|
eventInfo.preventGesture = false;
|
||||||
eventInfo.stopPropagation = false;
|
eventInfo.stopPropagation = false;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user