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