-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Up arrow in a read only editor sometimes moves you outside the editor #27765
Comments
I could not reproduce this issue in the diff left-hand-side read-only editor. I can, however, reproduce in the default settings editor, where arrow up after the first line moves focus out of the editor to a section toggle. The initial comment from @Neurrone mentions being in the default settings. |
@alexandrudima looks like a problem specific to that control |
IMHO, moving up cursor on the first line of a section moves focus the section header is a feature. Once the focus is on the section header, you can use arrow keys to expand/collapse the section and even navigate through different sections fastly. @sandy081 can confirm this. @Neurrone is this the only case that you run into this problem? |
@rebornix I personally find it more confusing than helpful, since the expectation of users in edit boxes is that the arrow keys will never cause you to leave the edit box if you're already inside. That instance is the only one which I've found so far, but I'm waiting till more issues are fixed to use it more intensively. |
@rebornix Yes I confirm. Default settings editor is a special editor. It is in a state in between editor and UI widget.
Agreed. But this Default Settings is a special read only editor with some widgets incorporated. IMO, I feel I should move away from using Editor for rendering Default Settings which will makes lot of things simple and intuitive. But then, users might loose the functionality of copying the contents of default settings like in editor. Its a trade off we have to make. |
Closing this based on above comment. |
@sandy081 Doing nothing does not seem to me to be the best outcome here. How about we add some code that alerts when arrow up is "stolen" by the Default Settings special keybinding. i.e. |
I wonder if this is already the case that when the group is focused, screen reader shouts the title/aria-label of the group. Can confirm. |
Confirmed that on focusing on the group, nothing is mentioned. @alexandrudima Not sure why the aria-label is not read by the screen reader? Reopening |
@sandy081 I don't know why the aria label is not read by the screen reader. Perhaps the screen reader expects that focus remains in the editor when pressing arrow up ? |
Closing this in favour of new settings editor. |
Extracted from @Neurrone 's comment in #26730 (comment)
I've installed the add-on and the global plugin that bumps the wait time up to 200ms.
...
Also when in the editor for files in readonly mode, pressing up arrow when on the first line unexpectedly moves you outside the editor. Down arrows will also sometimes move you outside the editor as well.
The text was updated successfully, but these errors were encountered: