diff options
author | Go MAEDA <maeda@farend.jp> | 2021-01-26 06:50:34 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2021-01-26 06:50:34 +0000 |
commit | 082570094a512c06d86fabf9df7a602e42645be4 (patch) | |
tree | 054c9f916f1f8d944415ae0abe67023586d5d072 /lib | |
parent | 876d6fd628ca99c8fb668636e1762e59955abece (diff) | |
download | redmine-082570094a512c06d86fabf9df7a602e42645be4.tar.gz redmine-082570094a512c06d86fabf9df7a602e42645be4.zip |
Add keyboard shortcuts for bold, italic and underline buttons (#34549).
Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@20729 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine/platform.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/redmine/platform.rb b/lib/redmine/platform.rb index 9fcc5f9c6..039766f21 100644 --- a/lib/redmine/platform.rb +++ b/lib/redmine/platform.rb @@ -24,6 +24,10 @@ module Redmine (/(:?mswin|mingw)/.match?(RUBY_PLATFORM)) || (RUBY_PLATFORM == 'java' && /windows/i.match?(ENV['OS'] || ENV['os'])) end + + def osx? + (/(:?darwin)/.match?(RUBY_PLATFORM)) + end end end end |