summaryrefslogtreecommitdiffstats
path: root/lib/redmine/access_keys.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-01-20 13:07:19 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-01-20 13:07:19 +0000
commit16e9ffce0d0e803f02e3660450120602bca8aff5 (patch)
tree67e40838004344d3b5ee98ef18d170210bf4c380 /lib/redmine/access_keys.rb
parent44ac1a0debc802b2ecbaa7cf7f763b373bf0fbb4 (diff)
downloadredmine-16e9ffce0d0e803f02e3660450120602bca8aff5.tar.gz
redmine-16e9ffce0d0e803f02e3660450120602bca8aff5.zip
Added a 'New issue' link in the main menu (accesskey 7).
The drop-down lists to add an issue on the project overview and the issue list are removed. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1081 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/access_keys.rb')
-rw-r--r--lib/redmine/access_keys.rb31
1 files changed, 31 insertions, 0 deletions
diff --git a/lib/redmine/access_keys.rb b/lib/redmine/access_keys.rb
new file mode 100644
index 000000000..96029a6fc
--- /dev/null
+++ b/lib/redmine/access_keys.rb
@@ -0,0 +1,31 @@
+# redMine - project management software
+# Copyright (C) 2006-2008 Jean-Philippe Lang
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+module Redmine
+ module AccessKeys
+ ACCESSKEYS = {:edit => 'e',
+ :preview => 'r',
+ :quick_search => 'f',
+ :search => '4',
+ :new_issue => '7'
+ }.freeze unless const_defined?(:ACCESSKEYS)
+
+ def self.key_for(action)
+ ACCESSKEYS[action]
+ end
+ end
+end