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; 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;