Fixed bug preventing keypress events from firing on MouseTrackers with onKeyDown handlers

This commit is contained in:
Mark Salsbery 2021-03-10 15:58:27 -08:00
parent 2bbfa97063
commit d7d7fda4af

View File

@ -2914,16 +2914,10 @@
eventInfo.stopPropagation = false;
break;
case 'keydown':
eventInfo.isStopable = true;
eventInfo.isCancelable = true;
eventInfo.preventDefault = !!tracker.keyDownHandler;
eventInfo.preventGesture = false;
eventInfo.stopPropagation = false;
break;
case 'keyup':
eventInfo.isStopable = true;
eventInfo.isCancelable = true;
eventInfo.preventDefault = !!tracker.keyUpHandler;
eventInfo.preventDefault = false;
eventInfo.preventGesture = false;
eventInfo.stopPropagation = false;
break;