From 082570094a512c06d86fabf9df7a602e42645be4 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Tue, 26 Jan 2021 06:50:34 +0000 Subject: 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 --- lib/redmine/platform.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') 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 -- cgit v1.2.3