summaryrefslogtreecommitdiffstats
path: root/lib/redmine/access_keys.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/redmine/access_keys.rb')
-rw-r--r--lib/redmine/access_keys.rb19
1 files changed, 11 insertions, 8 deletions
diff --git a/lib/redmine/access_keys.rb b/lib/redmine/access_keys.rb
index 4db9a552b..db66c7d84 100644
--- a/lib/redmine/access_keys.rb
+++ b/lib/redmine/access_keys.rb
@@ -19,14 +19,17 @@
module Redmine
module AccessKeys
- ACCESSKEYS = {:edit => 'e',
- :preview => 'r',
- :quick_search => 'f',
- :search => '4',
- :new_issue => '7',
- :previous => 'p',
- :next => 'n'
- }.freeze unless const_defined?(:ACCESSKEYS)
+ unless const_defined?(:ACCESSKEYS)
+ ACCESSKEYS = {
+ :edit => 'e',
+ :preview => 'r',
+ :quick_search => 'f',
+ :search => '4',
+ :new_issue => '7',
+ :previous => 'p',
+ :next => 'n'
+ }.freeze
+ end
def self.key_for(action)
ACCESSKEYS[action]