[ENHANCEMENT] [MER-3987] [MER-4018] support submitPerPart on math keyboard questions #5256
+70
−33
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This change allows math input questions using the MathLive keyboard to work with the
submitPerPart
option, which allows answers on practice pages to be automatically submitted on hitting Enter or focusing out of an input control with changed contents.The implementation updates the MathLive keyboard wrapper component to process the idiosyncratic MathLive events and translate into events the containing MultiInputDelivery relies on to implement the auto submit behavior.
The update also includes a fix for independent bug MER-4018, installing a property setting to ensure MathLive popup keyboard appears at top of the z-order.
The update includes a correction to MathLive component option handling that obviates the need for an earlier workaround #5136 to preserve the keyboard toggle button in authoring MER-3853, so that workaround code was removed.