Commit be0f97a6 authored by Alfredo Sumaran's avatar Alfredo Sumaran

Initialize navigation shortcuts on project's files page

parent 5507c24f
...@@ -88,6 +88,7 @@ class Dispatcher ...@@ -88,6 +88,7 @@ class Dispatcher
when 'groups:new', 'groups:edit', 'admin:groups:edit', 'admin:groups:new' when 'groups:new', 'groups:edit', 'admin:groups:edit', 'admin:groups:new'
new GroupAvatar() new GroupAvatar()
when 'projects:tree:show' when 'projects:tree:show'
shortcut_handler = new ShortcutsNavigation()
new TreeView() new TreeView()
when 'projects:find_file:show' when 'projects:find_file:show'
shortcut_handler = true shortcut_handler = true
......
...@@ -12,6 +12,7 @@ Feature: Project Shortcuts ...@@ -12,6 +12,7 @@ Feature: Project Shortcuts
@javascript @javascript
Scenario: Navigate to commits tab Scenario: Navigate to commits tab
Given I visit my project's files page
Given I press "g" and "c" Given I press "g" and "c"
Then the active main tab should be Commits Then the active main tab should be Commits
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment