product-backlog icon indicating copy to clipboard operation
product-backlog copied to clipboard

Improve, expand, and document keyboard shortcuts

Open klemay opened this issue 3 years ago • 8 comments

Currently, users can annotate selected text by typing a to create an annotation or h to create a highlight. This meets WCAG guidelines but could use some improvement and new additions. For example:

  • Enabling/disabling the browser extension
  • Opening and closing the sidebar
  • Moving from document to sidebar & vice versa
  • Interacting with an annotation: Editing, Replying, Flagging, and Deleting
  • Editing an annotation: toggle between preview and edit mode

Notes

  • All of these commands should have some kind of modifier (CTRL or CMD). We should also ensure that these do not interfere with commonly used keyboard shortcuts in the browser or other assistive technology.
  • Keyboard shortcuts should be documented in the KB

To Do:

  • [ ] Make a list of "actions" someone would need to do within the app
  • [ ] Propose a set of keyboard shortcuts for each of these options (might be helpful to research commonly used shortcuts to avoid)
  • [ ] Meet with our contacts at Benetech to validate those suggestions
  • [ ] Get this issue on our product backlog to be prioritized among our other work

klemay avatar Apr 09 '21 16:04 klemay

Example of potential for conflict between shortcut keys: Using keyboard shortcut 'h' with PDF changes pointer to Hand Tool

mattdricker avatar May 10 '21 15:05 mattdricker

Proposed list of actions to trigger with a keyboard shortcut:

  • Activate Hypothesis extension
  • Open/close sidebar
  • Navigate to next/previous annotation card
  • Navigate to next/previous selected document text
  • Search

In Editor:

  • Toggle between write & preview
  • Post to group
  • Post to Only Me
  • Cancel

[DONE]

  • ~~Annotate~~ a
  • ~~Highlight~~ h

mattdricker avatar May 26 '21 20:05 mattdricker

Some additional notes:

  • Navigate to next/previous annotation card
  • Navigate to next/previous selected document text

It may make sense for these to use same KB shortcut, with the difference being whether sidebar is open or shut.

Also, if a user has navigated to a selected text in the document, opening the sidebar should transfer that focus to the related annotation card. Vice versa with an annotation card selected when the sidebar is closed.

mattdricker avatar May 26 '21 20:05 mattdricker

Adding a detail I noted during the OSU call.

The "h" shortcut for "Highlight" conflicts with the common use of "h" as a shortcut to navigate "Headers."

While there is a "pass through mode" in screen readers to avoid this conflict, not all screen reader users will be that sophisticated.

@mattdricker you had mentioned something about work we had planned on "modifier keys" that might address this.

jeremydean avatar May 27 '21 14:05 jeremydean

@jeremydean yes, we will plan on using modifier keys (e.g. ctrl + alt) with all of our kb shortcuts to avoid these conflicts. Modifier keys currently TBA.

mattdricker avatar May 27 '21 15:05 mattdricker

Discussion on this topic will likely solve https://github.com/hypothesis/support/issues/201.

mkdir-washington-edu avatar Jun 01 '21 19:06 mkdir-washington-edu

Issue was linked to Harvestr Discovery: Use only my keyboard

chrisshaw avatar Mar 16 '22 22:03 chrisshaw

Some additional notes:

  • Navigate to next/previous annotation card
  • Navigate to next/previous selected document text

It may make sense for these to use same KB shortcut, with the difference being whether sidebar is open or shut.

Also, if a user has navigated to a selected text in the document, opening the sidebar should transfer that focus to the related annotation card. Vice versa with an annotation card selected when the sidebar is closed.

Hi @jeremydean ,

Do you know if they've gotten anywhere on "Navigate to next/previous annotation card?"

tripluoffthoranlz avatar Oct 22 '23 10:10 tripluoffthoranlz