Uh oh!
There was an error while loading. Please reload this page.
fix: tab key in code block - #4520
Conversation
1 flaky tests on run #11449 ↗︎Details:
| |||||||||||||||||||||
| Test | Artifacts | |
|---|---|---|
| Sync > passes the doc content from one session to the next | OutputScreenshots | |
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.
Uh oh!
There was an error while loading. Please reload this page.
mejo-
left a comment
There was a problem hiding this comment.
I wonder whether we want to do this a11y wise. It will break navigating with Tab if the focus jumps into a code block. CodeMirror has implemented an "escape hatch" for that reason: See https://codemirror.net/examples/tab/
Uh oh!
There was an error while loading. Please reload this page.
bc40d4c to
56781edComparemejo-
commented
Jul 29, 2023
@juliushaertl had the idea to add an Given that it's very unlikely to end up in a code block by tabbing through the app and that you still can move out of the code block via arrow keys, please disregard my a11y doubts |
juliusknorr
commented
Jul 31, 2023
Pytal
commented
Jul 31, 2023
As WCAG states "... if it requires more than unmodified arrow or tab keys or other standard exit methods, the user is advised of the method for moving focus away." (https://www.w3.org/WAI/WCAG21/Understanding/no-keyboard-trap.html) this technically meets requirements But it would be ideal to add an |
max-nextcloud
left a comment
There was a problem hiding this comment.
Code changes look good to me. Did not test it though.
Maybe accessibility hint could be moved to a separate issue.
juliusknorr
commented
Aug 1, 2023
Yes, we can also keep that separate and follow up. Another option might be to just disable the Tab behavior override depending on the user setting for disabling keyboard shortcuts. |
Signed-off-by: Luka Trovic <luka@nextcloud.com>
56781ed to
f1ed024Comparemejo-
commented
Aug 1, 2023
/compile |
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
mejo-
commented
Aug 1, 2023
/backport f1ed024 to stable27 |
mejo-
commented
Aug 1, 2023
/backport f1ed024 to stable26 |
📝 Summary
🖼️ Screenshots
🚧 TODO
🏁 Checklist
npm run lint/npm run stylelint/composer run cs:check)