-
Notifications
You must be signed in to change notification settings - Fork 32
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
EPUB/Snapshot: Keyboard accessibility improvements for annotations #150
base: master
Are you sure you want to change the base?
EPUB/Snapshot: Keyboard accessibility improvements for annotations #150
Conversation
Looks pretty good, but there are a few things to think about:
|
It was working in snapshots already; fixed for EPUBs.
Currently, yes. We could support shortcuts that move them between block elements. I'm a little skeptical about how well it'll work, but at least it'll be easier than deleting and recreating.
Yes, definitely. I forgot that those changes were part of #138; I'll get on porting those over to EPUB/snapshot. |
Do we want 2D navigation in EPUB/snapshot? I'm sort of inclined toward no, since it feels a little weird for textual web content (which has a linear order built in, unlike some PDFs), but no strong opinion. |
Yeah, I think 1D navigation is sufficient to start. |
OK, could you give it another try? Arrow key navigation and note annotation moving should work now. |
Sure. Looks great, but there are still a few things: Shift-Option-ArrowLeft results in this issue for me: 1.movTab -> Enter -> Escape scrolls the view to the top instead of defocusing the currently focused annotation: 2.movI'm not sure if this is an issue, but when Caps Lock is on, I see that blue icon whenever I click on text: 3.movSo is there a way to create a note annotation with just keyboard? |
OK, those issues should be fixed.
Ctrl-Alt-3 will now create a note annotation in the middle of the screen if there isn't any text selected.
macOS bug. I don't know why it's showing in this particular iframe, since nothing there should be sent to |
@mrtcode: Could you give this another try when you have a chance and let me know if anything seems to be missing? |
Sorry for the delay. A few little observations: Should the annotation popup hide when resizing a highlight? An extra tab is needed to focus on the annotation popup: extra-tab.movAnnotation movement with Shift-ArrowKeys is intentionally different from PDF view to prevent accidental movement, right? After adding a note annotation with Ctrl-Option-3, the annotation is focused, but the popup doesn't appear. |
How's that? I'll fix the popup bugs. Thanks - don't test with the sidebar closed enough. |
Sorry. I mean Note annotation movement to another paragraph. |
Oh, that wasn't exactly intentional (although maybe I'm just forgetting my reasoning), but I think it does make sense. EPUB/snapshot note annotations are annotations on text, not freeform annotations on the page, so I think it makes sense for them to move like highlights. |
Should all be fixed. |
Almost perfect. Just one more thing. After moving (with Shift-ArrowKeys) the note annotation across paragraphs, it disappeared, and I now get this error:
|
Uh oh. Which EPUB/snapshot? And where was the note? I'll see if I can reproduce. |
This EPUB file. Just add a note annotation and hold Shift-ArrowDown until it crashes at some paragraph. |
And don't scroll when focusing.
4aa2885
to
7159151
Compare
I haven't been able to reproduce that, unfortunately... but I added a few checks that might prevent it. Could you see if it's still happening? |
I no longer get the error. Now it just stops moving to the next paragraph where it was disappearing before, so I assume it’s fixed. |
Implements relevant #138 for EPUB/snapshot. Supports creating/resizing highlight/underline/note annotations.