diff options
author | Denys Mishunov <dmishunov@gitlab.com> | 2019-02-27 12:12:13 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2019-02-27 12:12:13 +0300 |
commit | 0aff8e27530d391e4c819838b46d77f6231ecf70 (patch) | |
tree | 994b53c9de178e06dfca697044c231651749a369 /doc/workflow | |
parent | d40a3809fd387f8dc9a28218a004260b600a1412 (diff) |
Set up basic keyboard next/previous navigation in diff list
Mousetrap is used as the help-tool to listen to keystrokes
Added currentDiffIndex getter to store that holds
the index of currently active diff file in the list
Instead of computing it on the component, we will take advantage of it
being available for all components in DiffsApp
Testing keyboard navigation and jumpToFile()
Diffstat (limited to 'doc/workflow')
-rw-r--r-- | doc/workflow/shortcuts.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/workflow/shortcuts.md b/doc/workflow/shortcuts.md index 7359e1c6119..6ed6b0bda66 100644 --- a/doc/workflow/shortcuts.md +++ b/doc/workflow/shortcuts.md @@ -82,6 +82,8 @@ You can see GitLab's keyboard shortcuts by using 'shift + ?' | <kbd>r</kbd> | Reply (quoting selected text) | | <kbd>e</kbd> | Edit issue/merge request | | <kbd>l</kbd> | Change label | +| <kbd>]</kbd> or <kbd>j</kbd> | Move to next file | +| <kbd>[</kbd> or <kbd>k</kbd> | Move to previous file | ## Wiki pages |