Skip to content

Conversation

@drgrice1
Copy link
Member

The latest version of JXSGraph is 1.12.2. However, that version (and all versions after 1.11.1) have an issue with tab order when keyboard events are enabled. Basically, it is impossible to use shift-tab to progress in reverse in the tab order. See jsxgraph/jsxgraph#773. So to work around that I had to override the board's keyDownListener method with one that does not call preventDefault on a keydown event that comes from a tab key being used.

Another thing that is a bit annoying with versions 1.11.1 and later is that you now have to set the tabindex on elements that are not fixed yourself. By default they set the tabindex to -1, which means they are not in the tab order. So gt.definingPointAttributes is now a function, and if it is called with gt.isStatic true, a tabindex of -1 is used, but if gt.isStatic is false, then a tabindex of 0 is used (and so those points will be keyboard focusable).

@drgrice1 drgrice1 force-pushed the upgrade-jsxgraph-to-latest branch from 96be816 to 00141d9 Compare December 22, 2025 17:12
The latest version of JXSGraph is 1.12.2.  However, that version (and
all versions after 1.11.1) have an issue with tab order when keyboard
events are enabled.  Basically, it is impossible to use shift-tab to
progress in reverse in the tab order.  See jsxgraph/jsxgraph#773.
So to work around that I had to override the board's `keyDownListener`
method with one that does not call `preventDefault` on a keydown event
that comes from a tab key being used.

Another thing that is a bit annoying with versions 1.11.1 and later is
that you now have to set the tabindex on elements that are not fixed
yourself.  By default they set the tabindex to -1, which means they are
not in the tab order.  So `gt.definingPointAttributes` is now a
function, and if it is called with `gt.isStatic` true, a tabindex of -1
is used, but if `gt.isStatic` is false, then a tabindex of 0 is used
(and so those points will be keyboard focusable).
@drgrice1 drgrice1 force-pushed the upgrade-jsxgraph-to-latest branch from 00141d9 to 00bf372 Compare December 22, 2025 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant