Moved comment dialog buttons for easier form submission.
Review Request #8153 — Created May 11, 2016 and discarded
The default value of the checkboxes in the comment dialog are likely not changed often and thus setting the [tab] button priority from the comment box to the "OK" button improves user experience: fewer keypresses to complete the comment.
- Clicking into the comment textarea, then tabbing to buttons.
Description | From | Last Updated |
---|---|---|
I feel like the buttons should be on the right. You can accomplish this with the tabindex attribute |
brennie |
-
Tool: Pyflakes Ignored Files: reviewboard/static/rb/js/views/commentDialogView.js reviewboard/static/rb/css/pages/reviews.less Tool: PEP8 Style Checker Ignored Files: reviewboard/static/rb/js/views/commentDialogView.js reviewboard/static/rb/css/pages/reviews.less
-
Thanks for the contribution. I think we're going to leave these as-is for now, for a few reasons:
1) The buttons are now positioned pretty awkwardly. Plus this seems to be showing all the button states now?
2) This is going to just wreck a bunch of the extensions out there that add checkboxes or buttons to the comment dialog.
3) While I understand the tab situation, there are other keyboard shortcuts (Control-Enter for Save, Escape for Cancel) that you can use instead of tabbing to the desired button. Delete is the exception, but that's also not going to be super common (and I'd rather add a shortcut for that than to change the design of this dialog just for this).