Open Plonq opened 1 month ago
Have you tried adding the keyboardBuilder as a custom property in the form settings?
Have you tried adding the keyboardBuilder as a custom property in the form settings?
Sorry I'm not sure what you mean. I have tried this, as I explained in the description:
new FormBuilder(
document.querySelector("#form-builder"),
{},
{ keyboardBuilder: true },
)
Is a "custom property in the form settings" different to that? If so can you explain more?
I initially did this on portal.form.io by just navigating into a form and accessing the settings for that particular form, but I was also able to accomplish this here: https://jsfiddle.net/dymL25ro
Formio.builder(document.getElementById('builder'), {
"properties": {
"keyboardBuilder": "true"
},
});
Thanks. I'll try it again, but in the meantime I've noticed several issues with that jsfiddle which make this unsuitable for keyboard only usage.
I can confirm I can get the keyboardBuilder
option working as shown in the jsfiddle linked above (I had a bug in one of my edit form template overrides). However, all the issues I stated still remain, making it ultimately unusable without a mouse.
Thanks for the input @Plonq
I'll get this in front of our planning team for review, but in the meantime, if you (or anyone else) would like to take a stab at this we always welcome any PR submissions for inclusion within the platform.
Internal ticket reference: FIO-8441
Internal ticket reference: FIO-8444 - all issues, described in the ticket
After review, we don't expect to resource a developer to investigate this in the near future but would be happy to review any contributions to resolve this behavior.
Describe the bug Not sure whether this should be a bug report or feature request, but the form builder is unusable with a keyboard. This doesn't just apply to the open source version, the SaaS platform has the same issue.
It's impossible to add components using just the keyboard, and it's also not possible to manipulate existing components. I can tab focus to select components in the sidebar, but that's all. Tabbing through components themselves doesn't really work - the hover/floating buttons never show up - and it's possible to get stuck inside a wysiwyg editor where tab just inserts a tab character.
There's an undocumented form builder option called
keyboardBuilder
, which, when set totrue
, doesn't help at all. In fact, it makes the component items in the sidebar unfocusable. The SaaS platform exhibits this behaviour too. The existence of this option suggests that the builder should be usable with keyboard, but it seems the option is broken.UPDATE: I can get the
keyboardBuilder
option working, however it has a few issues that make it impossible to use the builder without a mouse. I have listed the major issues in this comment: https://github.com/formio/formio.js/issues/5611#issuecomment-2130534401Version/Branch formiojs 4.19.3 Also the official SaaS platform
To Reproduce Steps to reproduce the behavior:
Expected behavior I expect to be able to add components, move them around, edit them, and so on, using just the keyboard.
Screenshots It's hard to show keyboard behaviour in screenshots or video, but this is easy to reproduce.