Change the reply shortcut to focus the field even without a selection.
Hey there! This was originally fixed in !5254 (closed), and all credit goes to @glennsayers for the initial solution! I've been wanting to contribute to GitLab for a while, and since this issue hadn't been updated in a while, I thought it would be a good chance to get my feet wet. Looking forward to your feedback!
What does this MR do?
Allows the 'r' shortcut to be used in an issue without a selection, and fixes a bug with attempting to retrieve a range when nothing has been selected.
Are there points in the code the reviewer needs to double check?
Why was this MR needed?
The 'r' shortcut would only highlight the relevant text field if a selection had been made, this allows the functionality to exist without an active selection.
Screenshots (if relevant)
Does this MR meet the acceptance criteria?
-
Changelog entry added -
Documentation created/updated -
API support added - Tests
-
Added for this feature/bug -
All builds are passing
-
-
Conform by the merge request performance guides -
Conform by the style guides -
Branch has no merge conflicts with master
(if it does - rebase it please) -
Squashed related commits together