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
Skip blank lines in browse mode, WIP fixes #4904 #6704
Conversation
This is implemented by a cursor manager tweek to the caret helper, and a new method on treeInterceptors/cursor managers called shouldSkipBlankLines taking an text info.
Don't skip blank lines for pre tags (Works in all browsers but edge Don't skip blank lines in word. If clickable and not only line, skipperuni. quicnav blank skipping, so that the arrows end up at the first line of text.
…econdly, if control+home or control+end, don't land on a blank at any cost
Um, the lines that disagree in config are strange. it looks very much like a white space issue. |
Conflicts: source/config/__init__.py Do to config spec upgrade, the config addition was placed into config/configSpec
I can't help but laugh at the fact that my last two commits were about the significance of blank lines, in a PR about omitting them. |
@michaelDCurran Is it possible in creators yet to get access to the field name, I.E. pre in edge? |
Hi, Fails in Edge (build 14393). Traceback says: ERROR - scriptHandler.executeScript (12:43:20): This was observed when I visited google.com with Edge and tried to use down arrow to move through lines in browse mode. Thanks. |
@michaelDCurran Is there a way in edge to get if something is hidden? If not, I'll just remove that check. |
I could also just do and field.field.get("isHidden", False) |
…t if we can get it.
@josephsl Can you try again with that change? |
Hi, Resolved in 14393. I'll get back to you once I run tests in 15063 and in 10586 (Version 1511). Thanks. |
Hi, Works in builds 10586 and 15063. Thanks. |
tag name is not yet exposed in Edge, though the request has been made.
As for hidden: Edge does not include these elements in the tree at all.
|
Base this for updating the cursorManager unit tests.
… and for simply using cursor managers with blank line skipping disabled.
fixes #4904 |
I'll fix the conflicts and then update the users gui8de (Forgot to) |
refactoring to put the blank skip code in the move part of the textinfo for a cursor manager, because @jcsteh correctly pointed out that my method doesn't work for braille. |
@derekriemer: Just wondering, how is the refactoring going? |
haven't had time to work out a new design at all. If you have any ideas, I'm happy to discuss. |
Hey folks, this feature would be really really nice. Thank you for your great work. I hope it does not cause any issues in MS Excel when navigating empty rows in browse mode. |
Unless there are any objections, I will close this pull request and suggest that if anyone is interested that they can take over. Thanks @derekriemer for providing the initial implementation! |
Allow skipping blank lines in browse mode. @jcsteh @michaelDCurran @feerrenrut If possible at some point, can I chat with someone who's familiar with this code to ask how I can implement one last UX fix and see if this approach is scalable?