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 /app/views/help/_shortcuts.html.haml | |
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 'app/views/help/_shortcuts.html.haml')
-rw-r--r-- | app/views/help/_shortcuts.html.haml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/views/help/_shortcuts.html.haml b/app/views/help/_shortcuts.html.haml index 28ffb2dd63c..efb3815b257 100644 --- a/app/views/help/_shortcuts.html.haml +++ b/app/views/help/_shortcuts.html.haml @@ -356,6 +356,18 @@ %td.shortcut %kbd l %td Change Label + %tr + %td.shortcut + %kbd ] + \/ + %kbd j + %td Move to next file + %tr + %td.shortcut + %kbd [ + \/ + %kbd k + %td Move to previous file %tbody.hidden-shortcut{ style: 'display:none' } %tr %th |