Patch #18692 » prev_next_access_key.diff
| app/views/issues/show.html.erb (working copy) | ||
|---|---|---|
|
<%= link_to_if @prev_issue_id,
|
||
|
"\xc2\xab #{l(:label_previous)}",
|
||
|
(@prev_issue_id ? issue_path(@prev_issue_id) : nil),
|
||
|
:title => "##{@prev_issue_id}" %> |
|
||
|
:title => "##{@prev_issue_id}",
|
||
|
:accesskey => accesskey(:prev_issue) %> |
|
||
|
<% if @issue_position && @issue_count %>
|
||
|
<span class="position"><%= l(:label_item_position, :position => @issue_position, :count => @issue_count) %></span> |
|
||
|
<% end %>
|
||
|
<%= link_to_if @next_issue_id,
|
||
|
"#{l(:label_next)} \xc2\xbb",
|
||
|
(@next_issue_id ? issue_path(@next_issue_id) : nil),
|
||
|
:title => "##{@next_issue_id}" %>
|
||
|
:title => "##{@next_issue_id}",
|
||
|
:accesskey => accesskey(:next_issue) %>
|
||
|
</div>
|
||
|
<% end %>
|
||
| lib/redmine/access_keys.rb (working copy) | ||
|---|---|---|
|
:preview => 'r',
|
||
|
:quick_search => 'f',
|
||
|
:search => '4',
|
||
|
:new_issue => '7'
|
||
|
:new_issue => '7',
|
||
|
:prev_issue => 'p',
|
||
|
:next_issue => 'n'
|
||
|
}.freeze unless const_defined?(:ACCESSKEYS)
|
||
|
def self.key_for(action)
|
||