Patch #28025 ยป add_accesskey_to_project_jump_box.diff
app/helpers/application_helper.rb | ||
---|---|---|
386 | 386 |
text ||= l(:label_jump_to_a_project) |
387 | 387 |
url = autocomplete_projects_path(:format => 'js', :jump => current_menu_item) |
388 | 388 | |
389 |
trigger = content_tag('span', text, :class => 'drdn-trigger') |
|
389 |
trigger = content_tag('span', text, :class => 'drdn-trigger', :accesskey => accesskey(:jump_project))
|
|
390 | 390 |
q = text_field_tag('q', '', :id => 'projects-quick-search', :class => 'autocomplete', :data => {:automcomplete_url => url}, :autocomplete => 'off') |
391 | 391 |
all = link_to(l(:label_project_all), projects_path(:jump => current_menu_item), :class => (@project.nil? && controller.class.main_menu ? 'selected' : nil)) |
392 | 392 |
content = content_tag('div', |
lib/redmine/access_keys.rb | ||
---|---|---|
23 | 23 |
:search => '4', |
24 | 24 |
:new_issue => '7', |
25 | 25 |
:previous => 'p', |
26 |
:next => 'n' |
|
26 |
:next => 'n', |
|
27 |
:jump_project => 'j' |
|
27 | 28 |
}.freeze unless const_defined?(:ACCESSKEYS) |
28 | 29 | |
29 | 30 |
def self.key_for(action) |