Class BrowserUtils

java.lang.Object
com.atlassian.jira.util.BrowserUtils

public class BrowserUtils extends Object
  • Field Details

  • Constructor Details

    • BrowserUtils

      public BrowserUtils()
  • Method Details

    • getModifierKey

      public static String getModifierKey()
      Returns the modifier key appropriate for the user's browser and platform (used for access keys). Should match https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/accesskey.
      Returns:
      Key or key combinations e.g. "Alt" or "Ctrl"
    • isIe456Or7

      public static boolean isIe456Or7(String userAgent)
    • isFilterBasedPngOpacity

      public static boolean isFilterBasedPngOpacity(String userAgent)
      Returns TRUE if the browser requires a Filter style opacity statement for PNGs

      • IE 5 upwards on Windows
      Parameters:
      userAgent - the user agent header from the request
      Returns:
      true if the browser is IE 5+ on Windows