Sourced from @​codemirror/view's
changelog.
6.40.0 (2026-03-12)
Bug fixes
Fix a bug that caused Shift-Enter/Backspace/Delete on iOS to lose the shift modifier when delivered to key event handlers.
Fix an issue where
EditorView.moveVerticallycould move to the wrong place in wrapped lines with a large line height.Make sure the selection head associativity is properly set for mouse selections made with shift held down.
New features
WidgetType.updateDOMis now called with the previous widget value as third argument.
4773b2e
Mark version 6.40.0773a0ee
Properly track associativity for shift-click selections3612d3f
Bring back the vertical scan loop in moveVerticallybc58375
Don't put Shift-Enter/Backspace/Del through the iOS pending key
hackfd252fa
Change WidgetType.updateDOM from type to this9373f52
Pass the old widget value to WidgetType.updateDOM