[SpeedGrader] DocViewer Annotations - Reverse OK and Cancel options to make 'OK' the default

In speedgrader, if you click on the trash icon next to an annotation, you get a modal that asks "Are you shure you want to delete..." with options Cancel/OK. OK is highlighted as the default choice. But hitting "Enter" dismisses the modal with no effect (effectively Cancels) instead of performing the default action.

Enter should either trigger the default action, OK, or the keypress should be consumed without closing the dialog.

4 Comments
Stef_retired
Instructure Alumni
Instructure Alumni
Status changed to: Moderating

@ascholerCCC I tested this and was not able to see any indication that OK is highlighted as the default choice. The default action on the modal is the first button, which is Cancel. That's why pressing Enter does not delete the comment. A keyboard user needs to first press Tab and then press Enter to delete the comment using keyboard commands. 

Would you like to modify the idea in some fashion?

 

 

ascholerCCC
Community Member

Although there is nothing codewise that marks the OK button as default, it is the one that is visually prominent. Visually it is communicated as the "expected" option.

Elsewhere, the Canvas UI/UX does seem to follow the convention "more prominent button is the default action". Example: Go to People/Groups. Click "Add a new group". Type a name in the textfield and hit enter. The "Save" button - which is the visually prominent button - is activated and the dialog performs the save action.

Users should not have to guess about which convention (prominent is default or first is default) every time they reach a new dialog.

KristinL
Community Team
Community Team
Status changed to: New
 
KristinL
Community Team
Community Team
Status changed to: Added to Theme