summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/helpers/application_helper.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 7c9aef059..148780df9 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -471,7 +471,11 @@ module ApplicationHelper
end
def accesskey(s)
- Redmine::AccessKeys.key_for s
+ @used_accesskeys ||= []
+ key = Redmine::AccessKeys.key_for(s)
+ return nil if @used_accesskeys.include?(key)
+ @used_accesskeys << key
+ key
end
# Formats text according to system settings.