Skip to content
Snippets Groups Projects
Commit 35cea54a authored by Phil Hughes's avatar Phil Hughes
Browse files

Fixed keyboard shortcuts not working on issue boards

Closes #21071
parent 12fe6a6f
No related branches found
No related tags found
No related merge requests found
Loading
@@ -20,6 +20,9 @@
Loading
@@ -20,6 +20,9 @@
path = page.split(':'); path = page.split(':');
shortcut_handler = null; shortcut_handler = null;
switch (page) { switch (page) {
case 'projects:boards:show':
shortcut_handler = new ShortcutsNavigation();
break;
case 'projects:issues:index': case 'projects:issues:index':
Issuable.init(); Issuable.init();
new IssuableBulkActions(); new IssuableBulkActions();
Loading
Loading
Loading
@@ -572,6 +572,18 @@ describe 'Issue Boards', feature: true, js: true do
Loading
@@ -572,6 +572,18 @@ describe 'Issue Boards', feature: true, js: true do
end end
end end
   
context 'keyboard shortcuts' do
before do
visit namespace_project_board_path(project.namespace, project)
wait_for_vue_resource
end
it 'allows user to use keyboard shortcuts' do
find('.boards-list').native.send_keys('i')
expect(page).to have_content('New Issue')
end
end
context 'signed out user' do context 'signed out user' do
before do before do
logout logout
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment