You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add flag to enable/disable cursor visiting stack nodes (#197)
* feat: Add options object for LineCursor
Add a CursorOptions type and add options objects of that type
to LineCursor and its constructor.
The only available (but not yet implemented) option is
stackConnections, defaulting to true.
* refactor: Ensure predicates can access this
Use bind when passing isValidLineNode and isValidInlineNode
as arguments to getNextNode and getPreviousNode, so that
those methods can access this.options.
* refactor: Use protected instead of @Protected
* fix: have isValidInlineNode use isValidLineNode
This ensures that all valid line nodes are also valid inline
nodes, which was the intention (but had accidentally been
broken by PR #162, and could easily be further broken
by this PR without sufficient care).
* feat: Implement the stackConnections: false option
Prevent stack connections, except for unconnected 'next'
connections (and unconnected next statement inputs), from
being visited if stackConnections option is false.
* feat: Plumb CursorOptions through KeyboardNavigation
Add a NavigationOptions type and use it for an options object
for the KeyboardNavigation constructor. For now it just has
a single property of type CursorOptions, but I anticipate
adding flags for different test scenarios (e.g. which key opens
context menu, on which nodes various options are presented).
Will plumb this through the test code in the next RP.
0 commit comments